Merge pull request #11400 from WIZARD-CXY/compactfix

mvcc/kvstore:fixcompactbug
release-3.5
Jingyi Hu 2019-11-27 13:03:32 -08:00 committed by GitHub
commit ccc52bef1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

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++
}
}