mirror of
https://github.com/XRPLF/rippled.git
synced 2026-08-21 22:30:57 +00:00
fix: Remove fatal assertion on Linux thread name truncation (#6690)
This commit is contained in:
committed by
GitHub
parent
29e49abd3c
commit
6e2452207d
@@ -95,11 +95,6 @@ setCurrentThreadNameImpl(std::string_view name)
|
||||
{
|
||||
std::cerr << "WARNING: Thread name \"" << name << "\" (length " << name.size()
|
||||
<< ") exceeds maximum of " << maxThreadNameLength << " characters on Linux.\n";
|
||||
|
||||
XRPL_ASSERT(
|
||||
false,
|
||||
"beast::detail::setCurrentThreadNameImpl : Thread name exceeds "
|
||||
"maximum length for Linux");
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -56,8 +56,10 @@ OrderBookDBImpl::setup(std::shared_ptr<ReadView const> const& ledger)
|
||||
}
|
||||
else
|
||||
{
|
||||
// Shorten job name to fit Linux 15-char thread name limit with "j:" prefix
|
||||
// "OB" + seq (max 9 digits) = 11 chars, + "j:" = 13 chars (fits in 15)
|
||||
registry_.get().getJobQueue().addJob(
|
||||
jtUPDATE_PF, "OBUpd" + std::to_string(ledger->seq()), [this, ledger]() {
|
||||
jtUPDATE_PF, "OB" + std::to_string(ledger->seq() % 1000000000), [this, ledger]() {
|
||||
update(ledger);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user