Skip to content

Commit

Permalink
kv/kvnemesis: copy value before holding a reference
Browse files Browse the repository at this point in the history
Epic: none
Fixes: #110765
  • Loading branch information
bananabrick committed Sep 18, 2023
1 parent 9371ad8 commit 78a405a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/kv/kvnemesis/validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -1383,6 +1383,7 @@ func validReadTimes(

// Handle a point key - put it into `hist`.
valB, err := iter.ValueAndErr()
valB = append([]byte{}, valB...)
if err != nil {
panic(err)
}
Expand Down

0 comments on commit 78a405a

Please sign in to comment.