Fix write load.

This commit is contained in:
David Schwartz
2013-07-24 17:53:54 -07:00
parent 6812153d9a
commit 2608b56dc0

View File

@@ -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);