Add an assert.

This commit is contained in:
JoelKatz
2012-09-14 07:08:16 -07:00
parent a4f41edf7a
commit 72f9417149

View File

@@ -97,6 +97,8 @@ bool SHAMap::compare(SHAMap::ref otherMap, SHAMapDiff& differences, int maxCount
// throws on corrupt tables or missing nodes
// CAUTION: otherMap is not locked and must be immutable
assert(isValid() && otherMap && otherMap->isValid());
std::stack<SHAMapDiffNode> nodeStack; // track nodes we've pushed
boost::recursive_mutex::scoped_lock sl(mLock);