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