Skip to content

Commit

Permalink
server/mvcc: introduce compactBeforeSetFinishedCompact failpoint
Browse files Browse the repository at this point in the history
Signed-off-by: Wei Fu <fuweid89@gmail.com>
  • Loading branch information
fuweid committed Apr 24, 2024
1 parent 6dce9b2 commit 6b03446
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/mvcc/kvstore_compaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ func (s *store) scheduleCompaction(compactMainRev, prevCompactRev int64) (KeyVal
}

if len(keys) < s.cfg.CompactionBatchLimit {
// gofail: var compactBeforeSetFinishedCompact struct{}
rbytes := make([]byte, 8+1+8)
revToBytes(revision{main: compactMainRev}, rbytes)
tx.UnsafePut(buckets.Meta, finishedCompactKeyName, rbytes)
Expand Down

0 comments on commit 6b03446

Please sign in to comment.