mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
mvcc: introduce compactBeforeSetFinishedCompact failpoint
Signed-off-by: Wei Fu <fuweid89@gmail.com>
This commit is contained in:
parent
48b0c496c0
commit
dcda47dc29
@ -49,6 +49,7 @@ func (s *store) scheduleCompaction(compactMainRev int64, keep map[revision]struc
|
||||
}
|
||||
|
||||
if len(keys) < s.cfg.CompactionBatchLimit {
|
||||
// gofail: var compactBeforeSetFinishedCompact struct{}
|
||||
rbytes := make([]byte, 8+1+8)
|
||||
revToBytes(revision{main: compactMainRev}, rbytes)
|
||||
tx.UnsafePut(metaBucketName, finishedCompactKeyName, rbytes)
|
||||
|
Loading…
x
Reference in New Issue
Block a user