Merge pull request #16419 from Abhishekvrshny/fix-err-msg

rgw: fix error message in removing bucket with --bypass-gc flag

Reviewed-by: Matt Benjamin <mbenjami@redhat.com>
This commit is contained in:
Casey Bodley 2017-07-19 15:48:06 -04:00 committed by GitHub
commit 6f5d375206

View File

@ -1353,7 +1353,12 @@ int RGWBucketAdminOp::remove_bucket(RGWRados *store, RGWBucketAdminOpState& op_s
if (ret < 0)
return ret;
return bucket.remove(op_state, bypass_gc, keep_index_consistent);
std::string err_msg;
ret = bucket.remove(op_state, bypass_gc, keep_index_consistent, &err_msg);
if (!err_msg.empty()) {
lderr(store->ctx()) << "ERROR: " << err_msg << dendl;
}
return ret;
}
int RGWBucketAdminOp::remove_object(RGWRados *store, RGWBucketAdminOpState& op_state)