Skip to content

Commit

Permalink
Merge pull request #11400 from WIZARD-CXY/compactfix
Browse files Browse the repository at this point in the history
mvcc/kvstore:fixcompactbug
  • Loading branch information
jingyih authored Nov 27, 2019
2 parents 3275e5f + 655df65 commit ccc52be
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mvcc/kvstore_compaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -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++
}
}

Expand Down

0 comments on commit ccc52be

Please sign in to comment.