Freeze gid to lid map tree before compacting it.
@@ -207,6 +207,8 @@ void
DocumentMetaStore::onCommit()
{
if (consider_compact_gid_to_lid_map()) {
+ incGeneration();
+ _changesSinceCommit = 0;
_gidToLidMap.compact_worst();
_gid_to_lid_map_write_itr_prepare_serial_num = 0u;
_gid_to_lid_map_write_itr.begin(_gidToLidMap.getRoot());
