internal void CommitLastDictId(ulong newLastDictId, IKeyValueDBTransaction tr)
{
if (_lastDictId != newLastDictId)
{
tr.SetKeyPrefix(null);
var w = new ByteBufferWriter();
w.WriteVUInt64(newLastDictId);
tr.CreateOrUpdateKeyValue(LastDictIdKey, w.Data.ToByteArray());
_lastDictId = newLastDictId;
}
}