]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
crimson/.../linked_tree_node: fix pivot_idx assertion in balancing
authorChanyoung Park <chaney.p@kakaoenterprise.com>
Mon, 28 Jul 2025 08:44:34 +0000 (08:44 +0000)
committerChanyoung Park <chaney.p@kakaoenterprise.com>
Tue, 29 Jul 2025 16:09:30 +0000 (16:09 +0000)
commite8f8879ceda6d0d09c278f1f8f72072baff65231
treee026bec40979000e78930795d8d06003dc8abda7
parent5b828b6a44549db27bb6bafa11af82f832931f67
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 <chaney.p@kakaoenterprise.com>
src/crimson/os/seastore/linked_tree_node.h