]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
crimson/osd: fix PGBackend::remove() to return ENOENT on no-op deletes 69415/head
authorRonen Friedman <rfriedma@redhat.com>
Thu, 11 Jun 2026 11:33:42 +0000 (11:33 +0000)
committerRonen Friedman <rfriedma@redhat.com>
Thu, 11 Jun 2026 11:38:02 +0000 (11:38 +0000)
commitcae12eccddf0499f9c4dffa75ee23fd4b088ffb3
tree45b9b0bee94d50495626ae14befa3f53c3dcd04f
parent7b779e84d78395c540c43aba7a2ce475688f3d4e
crimson/osd: fix PGBackend::remove() to return ENOENT on no-op deletes

PGBackend::remove() was returning success when asked to delete a
non-existent object or an already-whiteout object that must remain
a whiteout. The classic OSD returns -ENOENT in both cases. Fix both
paths to return enoent, and remove the duplicate !os.exists check.

Fixes: https://tracker.ceph.com/issues/76529
Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
src/crimson/osd/pg_backend.cc