mirror of
https://github.com/ceph/ceph
synced 2024-12-18 17:37:38 +00:00
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:
commit
6f5d375206
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user