// Refresh info
ret = load_bucket(dpp, y);
- if (ret < 0)
+ if (ret < 0) {
return ret;
+ }
ListParams params;
params.list_versions = true;
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 <<
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) {