Commit e8f8879
committed
crimson/.../linked_tree_node: fix pivot_idx assertion in balancing
The pivot_idx is defined in the global index space of the combined
left and right nodes, and since each key may have a different byte
size, a pivot index that happens to be equal to r_size can still
result in a valid rebalancing. Therefore, we only exclude the case
where pivot_idx == l_size, which means no actual rebalancing would
occur.
Fixes: https://tracker.ceph.com/issues/72303
Signed-off-by: Chanyoung Park <[email protected]>1 parent 5b828b6 commit e8f8879
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
655 | 655 | | |
656 | 656 | | |
657 | 657 | | |
658 | | - | |
| 658 | + | |
659 | 659 | | |
660 | 660 | | |
661 | 661 | | |
| |||
0 commit comments