From: J. Eric Ivancich Date: Thu, 11 Nov 2021 16:13:01 +0000 (-0500) Subject: rgw: a few coding fix-ups X-Git-Tag: v17.1.0~427^2~1 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=5c624489f40c114419f875325ebc8d10c2968cae;p=ceph-ci.git rgw: a few coding fix-ups Adds some code documentation and nudges code towards ceph coding standards. Signed-off-by: J. Eric Ivancich --- diff --git a/src/rgw/rgw_sal_rados.cc b/src/rgw/rgw_sal_rados.cc index 1bf8417d186..65f5b6470b5 100644 --- a/src/rgw/rgw_sal_rados.cc +++ b/src/rgw/rgw_sal_rados.cc @@ -369,8 +369,9 @@ int RadosBucket::remove_bucket(const DoutPrefixProvider* dpp, // Refresh info ret = load_bucket(dpp, y); - if (ret < 0) + if (ret < 0) { return ret; + } ListParams params; params.list_versions = true; @@ -382,8 +383,9 @@ int RadosBucket::remove_bucket(const DoutPrefixProvider* dpp, results.objs.clear(); ret = list(dpp, params, 1000, results, y); - if (ret < 0) + if (ret < 0) { return ret; + } if (!results.objs.empty() && !delete_children) { ldpp_dout(dpp, -1) << "ERROR: could not remove non-empty bucket " << info.bucket.name << @@ -560,8 +562,8 @@ int RadosBucket::remove_bucket_bypass_gc(int concurrent_max, bool max_aio = concurrent_max; } obj_ctx.invalidate(obj->get_obj()); - } // for all RGW objects - } + } // for all RGW objects in results + } // while is_truncated ret = handles->drain(); if (ret < 0) {