From 73535b105de850f2b9b728e1c54fda113b37fafb Mon Sep 17 00:00:00 2001 From: Mykola Golub Date: Sun, 11 May 2025 20:42:21 +0300 Subject: [PATCH] rgw_gc: don't fail when processing entry with nonexisting pool Fixes: https://tracker.ceph.com/issues/68169 Signed-off-by: Mykola Golub --- src/rgw/driver/rados/rgw_gc.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/rgw/driver/rados/rgw_gc.cc b/src/rgw/driver/rados/rgw_gc.cc index 24867ce1ac1d..866bb4554b5d 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; -- 2.47.3