]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
crimson/os/seastore/omap_manager: count key length in the overwrite gap 70180/head
authorMatan Breizman <mbreizma@redhat.com>
Sun, 26 Jul 2026 07:31:41 +0000 (07:31 +0000)
committerMatan Breizman <mbreizma@redhat.com>
Sun, 26 Jul 2026 07:36:42 +0000 (07:36 +0000)
commitcedad57aee3a34d5bdce4a81ae4d514ce2ebc72f
tree306eb9a9f37f2f4334651870cd5a66ddf3e6e8d4
parent0836e417bad0f50e3bcb05329b4d5d1d478af313
crimson/os/seastore/omap_manager: count key length in the overwrite gap

ow_gap_from_last_entry() returns how much the node grows when the tail entry
is overwritten. However, it compared *value* lengths only.

overwriting pg-log key (31B) is longer than a _fastinfo key (9B) -
So the growth was under-counted by 22 bytes.

Also assert in _append()/_overwrite() that the write stays within capacity() to
avoid similar issues.

Signed-off-by: Matan Breizman <mbreizma@redhat.com>
src/crimson/os/seastore/omap_manager/log/log_node.cc
src/crimson/os/seastore/omap_manager/log/log_node.h