Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix incorrect deletion order in range_tree_add_impl gap case
After a side-effectful call like add or remove, references to range segs stored in btrees can no longer be used safely. We move the remove call to just before the reinsertion call so that the seg remains valid for as long as we need it. Reviewed-by: Matthew Ahrens <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Paul Dagnelie <[email protected]> Closes #11044 Closes #11056
- Loading branch information