]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw_gc: don't fail when processing entry with nonexisting pool 59902/head
authorMykola Golub <mykola.golub@clyso.com>
Sun, 11 May 2025 17:42:21 +0000 (20:42 +0300)
committerMykola Golub <mykola.golub@clyso.com>
Tue, 21 Jul 2026 07:50:45 +0000 (10:50 +0300)
Fixes: https://tracker.ceph.com/issues/68169
Signed-off-by: Mykola Golub <mykola.golub@clyso.com>
src/rgw/driver/rados/rgw_gc.cc

index 24867ce1ac1dd3da03e68bab96c77fc3eda40a41..866bb4554b5d85639a3d2957658b8748668b667a 100644 (file)
@@ -591,9 +591,9 @@ int RGWGC::process(int index, int max_secs, bool expired_only,
            ctx = new IoCtx;
            ret = rgw_init_ioctx(this, store->get_rados_handle(), obj.pool, *ctx);
            if (ret < 0) {
-        if (transitioned_objects_cache[index]) {
-          goto done;
-        }
+             if (ret != -ENOENT && transitioned_objects_cache[index]) {
+               goto done;
+             }
              last_pool = "";
              ldpp_dout(this, 0) << "ERROR: failed to create ioctx pool=" <<
                obj.pool << dendl;