Skip to content

Commit

Permalink
*: introduce failpoint beforeBucketPut
Browse files Browse the repository at this point in the history
Signed-off-by: Wei Fu <fuweid89@gmail.com>
(cherry picked from commit 324df9c)
Signed-off-by: Wei Fu <fuweid89@gmail.com>
  • Loading branch information
fuweid committed Dec 18, 2023
1 parent 0a521c0 commit d520aaa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bucket.go
Expand Up @@ -299,6 +299,8 @@ func (b *Bucket) Put(key []byte, value []byte) error {
return 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.
Expand Down

0 comments on commit d520aaa

Please sign in to comment.