From 324df9cd264b7f2c4504ea61758a4ea89373e4ce Mon Sep 17 00:00:00 2001 From: Wei Fu Date: Tue, 12 Dec 2023 19:44:03 +0800 Subject: [PATCH] *: introduce failpoint beforeBucketPut Signed-off-by: Wei Fu --- bucket.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bucket.go b/bucket.go index f9f2381..4aa04be 100644 --- a/bucket.go +++ b/bucket.go @@ -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.