*: introduce failpoint beforeBucketPut

Signed-off-by: Wei Fu <fuweid89@gmail.com>
This commit is contained in:
Wei Fu 2023-12-12 19:44:03 +08:00
parent a7a791ca81
commit 324df9cd26

View File

@ -336,6 +336,8 @@ func (b *Bucket) Put(key []byte, value []byte) error {
return errors.ErrIncompatibleValue
}
// gofail: var beforeBucketPut struct{}
// Insert into node.
// Tip: Use a new variable `newKey` instead of reusing the existing `key` to prevent
// it from being marked as leaking, and accordingly cannot be allocated on stack.