rgw_gc: don't fail when processing entry with nonexisting pool

Fixes: https://tracker.ceph.com/issues/68169
Signed-off-by: Mykola Golub <mykola.golub@clyso.com>
This commit is contained in:
Mykola Golub 2025-05-11 20:42:21 +03:00
parent c77c5eb8db
commit 73535b105d

View 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;