From: Mykola Golub Date: Sun, 11 May 2025 17:42:21 +0000 (+0300) Subject: rgw_gc: don't fail when processing entry with nonexisting pool X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=73535b105de850f2b9b728e1c54fda113b37fafb;p=ceph.git rgw_gc: don't fail when processing entry with nonexisting pool Fixes: https://tracker.ceph.com/issues/68169 Signed-off-by: Mykola Golub --- diff --git a/src/rgw/driver/rados/rgw_gc.cc b/src/rgw/driver/rados/rgw_gc.cc index 24867ce1ac1..866bb4554b5 100644 --- a/src/rgw/driver/rados/rgw_gc.cc +++ b/src/rgw/driver/rados/rgw_gc.cc @@ -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;