mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Improve I/O when fetching ledgers
* negative cache for node store * async fetch, thread pool for node store * read barrier logic for node store * SHAMap getMissingNodesNB (non-blocking) * non-blocking getMissingNodes traverse * tune caches
This commit is contained in:
committed by
Vinnie Falco
parent
37b39ed1a1
commit
2f7ac98e34
@@ -157,6 +157,18 @@ public:
|
||||
m_map.clear ();
|
||||
}
|
||||
|
||||
void setTargetSize (size_type s)
|
||||
{
|
||||
lock_guard lock (m_mutex);
|
||||
m_target_size = s;
|
||||
}
|
||||
|
||||
void setTargetAge (size_type s)
|
||||
{
|
||||
lock_guard lock (m_mutex);
|
||||
m_target_age = std::chrono::seconds (s);
|
||||
}
|
||||
|
||||
/** Returns `true` if the key was found.
|
||||
Does not update the last access time.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user