mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-20 11:05:54 +00:00
Fix write load.
This commit is contained in:
@@ -177,13 +177,9 @@ void NodeStore::BatchWriter::writeBatch ()
|
||||
return;
|
||||
}
|
||||
|
||||
// VFALCO NOTE On the first trip through, mWriteLoad will be 0.
|
||||
// This is probably not intended. Perhaps the order
|
||||
// of calls isn't quite right
|
||||
//
|
||||
mWriteLoad = std::max (setSize, static_cast<int> (mWriteSet.size ()));
|
||||
|
||||
setSize = set.size ();
|
||||
int newSetSize = mWriteSet.size();
|
||||
mWriteLoad = std::max (setSize, newSetSize);
|
||||
newSetSize = set.size ();
|
||||
}
|
||||
|
||||
m_callback.writeBatch (set);
|
||||
|
||||
Reference in New Issue
Block a user