From 4bc600a88dcf6677dc7f7b78734fd4bb00d8f9e7 Mon Sep 17 00:00:00 2001 From: Yuval Lifshitz Date: Tue, 1 Feb 2022 11:04:06 +0200 Subject: [PATCH] rgw/reshard: resolve inconsistent cache warnings use an API that does not check for cache inconsistency hence, "WARNING: The bucket info cache is inconsistent" warnings is removed from reshard Signed-off-by: Yuval Lifshitz --- src/rgw/rgw_rados.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/rgw/rgw_rados.cc b/src/rgw/rgw_rados.cc index b0f0eb20e4498..251a5de72b6f5 100644 --- a/src/rgw/rgw_rados.cc +++ b/src/rgw/rgw_rados.cc @@ -6845,8 +6845,9 @@ int RGWRados::block_while_resharding(RGWRados::BucketShard *bs, // new_bucket_id and returns 0, otherwise it returns a negative // error code auto fetch_new_bucket_info = - [this, &bucket_info, &bucket_attrs, dpp](const std::string& log_tag) -> int { - int ret = try_refresh_bucket_info(bucket_info, nullptr, dpp, &bucket_attrs); + [this, bs, &bucket_info, &bucket_attrs, &y, dpp](const std::string& log_tag) -> int { + int ret = get_bucket_info(&svc, bs->bucket.tenant, bs->bucket.name, + bucket_info, nullptr, y, dpp, &bucket_attrs); if (ret < 0) { ldpp_dout(dpp, 0) << __func__ << " ERROR: failed to refresh bucket info after reshard at " << -- 2.39.5