mvcc/kvstore:fixcompactbug

This commit is contained in:
宇慕 2019-11-27 17:55:42 +08:00
parent 419ffb77ab
commit 655df65e93

View File

@ -43,6 +43,7 @@ func (s *store) scheduleCompaction(compactMainRev int64, keep map[revision]struc
rev = bytesToRev(key)
if _, ok := keep[rev]; !ok {
tx.UnsafeDelete(keyBucketName, key)
keyCompactions++
}
}