]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
crimson/osd/osd_operations/snaptrim_event: Handle missing clone obc
authorMatan Breizman <mbreizma@redhat.com>
Mon, 24 Apr 2023 12:55:08 +0000 (12:55 +0000)
committerMatan Breizman <mbreizma@redhat.com>
Mon, 22 May 2023 15:49:36 +0000 (15:49 +0000)
commit909124000b822149ea334487ee6bc60013a6b0f9
tree08eeb99f6492ca0e17a5139ea23b4761c729ceb4
parentfc6868ee18e1c29cab1f0ab93e62685d57b441de
crimson/osd/osd_operations/snaptrim_event: Handle missing clone obc

The case where resolve_oid is not able to return the clone oid (in order
to load the clone obc) should result in an SNAPTRIM_ERROR and stop the loop
iteration. Without taking this case into account an infinite loop of snap
trim events will be created.
The ENOENT error is delegated upwards to be handled by PG::on_active_actmap().

Fixes: https://tracker.ceph.com/issues/59231
Signed-off-by: Matan Breizman <mbreizma@redhat.com>
(cherry picked from commit 5f1f3625908331e164274621f2e0b092efda0452)
src/crimson/osd/osd_operations/snaptrim_event.cc