]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/osd: add warning log for stray pgmeta-like objects 67929/head
authormyoungwon oh <ohmyoungwon@gmail.com>
Sat, 21 Mar 2026 08:02:15 +0000 (17:02 +0900)
committermyoungwon oh <ohmyoungwon@gmail.com>
Fri, 27 Mar 2026 06:10:04 +0000 (15:10 +0900)
Add a warning log when a stray pgmeta-like object is found during
PG removal so that related error conditions can be detected earlier.

Signed-off-by: Myoungwon Oh <ohmyoungwon@gmail.com>
src/crimson/osd/pg.cc

index 5c231e14ce11ec36e697b993972db4c74b469764..cb121ea2fcb6017022ce06283123cb3885bc3d81 100644 (file)
@@ -514,6 +514,9 @@ PG::do_delete_work(ceph::os::Transaction &t, ghobject_t _next)
       if (obj == pgmeta_oid || obj.is_internal_pg_local()) {
         continue;
       }
+      if (obj.is_pgmeta()) {
+       WARNDPP("pg {} found stray pgmeta-like {} during PG removal", *this, pgid, obj);
+      }
       TRACEDPP("pg {}, removing obj {}", *this, pgid, obj);
       t.remove(coll_ref->get_cid(), obj);
     }