Skip to content

Commit

Permalink
*: introduce failpoint beforeBucketPut
Browse files Browse the repository at this point in the history
Signed-off-by: Wei Fu <[email protected]>
(cherry picked from commit 324df9c)
Signed-off-by: Wei Fu <[email protected]>
  • 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
Original file line number Diff line number Diff line change
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.