aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/zstream
diff options
context:
space:
mode:
authorRob N <[email protected]>2024-05-25 11:55:47 +1000
committerGitHub <[email protected]>2024-05-24 18:55:47 -0700
commit34906f8bbee337ee5aa9b79c141517bff0a4e0ab (patch)
tree603c64fa0084bd50140e7714527da27b5a72619e /cmd/zstream
parent708be0f415c83c941d3ed5153fafc5d3766e4cdd (diff)
zap: reuse zap_leaf_t on dbuf reuse after shrink
If a shrink or truncate had recently freed a portion of the ZAP, the dbuf could still be sitting on the dbuf cache waiting for eviction. If it is then allocated for a new leaf before it can be evicted, the zap_leaf_t is still attached as userdata, tripping the VERIFY. Instead, just check for the userdata, and if we find it, reuse it. Sponsored-by: Klara, Inc. Sponsored-by: iXsystems, Inc. Reviewed-by: Alexander Motin <[email protected]> Signed-off-by: Rob Norris <[email protected]> Closes #16157. Closes #16204
Diffstat (limited to 'cmd/zstream')
0 files changed, 0 insertions, 0 deletions