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>
  • Loading branch information
fuweid committed Dec 13, 2023
1 parent a7a791c commit 324df9c
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 @@ -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.
Expand Down

0 comments on commit 324df9c

Please sign in to comment.