Merge pull request #59902 from trociny/wip-68169

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

Reviewed-by: Adam C. Emerson <aemerson@redhat.com>
Reviewed-by: Pritha Srivastava <prsrivas@redhat.com>
This commit is contained in:
Mykola Golub 2026-07-21 18:23:36 +03:00 committed by GitHub
commit ccd9d3e94b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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;