Bug fix in detection of lack of mutations in a subtree.

This commit is contained in:
Stephen Atherton 2017-08-31 01:23:12 -07:00
parent 1e11353603
commit 88e48e9a3e
1 changed files with 1 additions and 1 deletions

View File

@ -533,7 +533,7 @@ private:
// subtree but have no changes in it // subtree but have no changes in it
MutationBufferT::const_iterator iMutationBoundaryNext = iMutationBoundary; MutationBufferT::const_iterator iMutationBoundaryNext = iMutationBoundary;
++iMutationBoundaryNext; ++iMutationBoundaryNext;
if(iMutationBoundaryNext == iMutationBoundaryEnd && iMutationBoundaryNext->second.noChanges()) { if(iMutationBoundaryNext == iMutationBoundaryEnd && iMutationBoundary->second.noChanges()) {
debug_printf("%s no changes because sole mutation range was empty\n", printPrefix.c_str()); debug_printf("%s no changes because sole mutation range was empty\n", printPrefix.c_str());
return VersionedChildrenT({ {0,{{lowerBoundKey,root}}} }); return VersionedChildrenT({ {0,{{lowerBoundKey,root}}} });
} }