Skip to content

Commit 324df9c

Browse files
committed
*: introduce failpoint beforeBucketPut
Signed-off-by: Wei Fu <[email protected]>
1 parent a7a791c commit 324df9c

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

bucket.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,8 @@ func (b *Bucket) Put(key []byte, value []byte) error {
336336
return errors.ErrIncompatibleValue
337337
}
338338

339+
// gofail: var beforeBucketPut struct{}
340+
339341
// Insert into node.
340342
// Tip: Use a new variable `newKey` instead of reusing the existing `key` to prevent
341343
// it from being marked as leaking, and accordingly cannot be allocated on stack.

0 commit comments

Comments
 (0)