mirror of
https://github.com/etcd-io/bbolt.git
synced 2025-05-30 19:22:24 +00:00
*: introduce failpoint beforeBucketPut
Signed-off-by: Wei Fu <fuweid89@gmail.com>
This commit is contained in:
parent
a7a791ca81
commit
324df9cd26
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user