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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// VFALCO NOTE On the first trip through, mWriteLoad will be 0.
|
int newSetSize = mWriteSet.size();
|
||||||
// This is probably not intended. Perhaps the order
|
mWriteLoad = std::max (setSize, newSetSize);
|
||||||
// of calls isn't quite right
|
newSetSize = set.size ();
|
||||||
//
|
|
||||||
mWriteLoad = std::max (setSize, static_cast<int> (mWriteSet.size ()));
|
|
||||||
|
|
||||||
setSize = set.size ();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
m_callback.writeBatch (set);
|
m_callback.writeBatch (set);
|
||||||
|
|||||||
Reference in New Issue
Block a user