Merge pull request #11403 from jingyih/automated-cherry-pick-of-#11400-upstream-release-3.4

Automated cherry pick of #11400 on release 3.4
This commit is contained in:
Jingyi Hu 2019-11-27 13:28:34 -08:00 committed by GitHub
commit 94e46ba0d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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