mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Add 'dropCache' function to remove extraneous nodes from memory.
This commit is contained in:
@@ -382,6 +382,9 @@ public:
|
||||
// Returns a new map that's a snapshot of this one. Force CoW
|
||||
SHAMap::pointer snapShot(bool isMutable);
|
||||
|
||||
// Remove nodes from memory
|
||||
void dropCache();
|
||||
|
||||
// hold the map stable across operations
|
||||
ScopedLock Lock() const { return ScopedLock(mLock); }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user