]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: fix error message in removing bucket with --bypass-gc flag 16419/head
authorAbhishek Varshney <abhishek.varshney@flipkart.com>
Wed, 19 Jul 2017 11:57:08 +0000 (11:57 +0000)
committerAbhishek Varshney <abhishek.varshney@flipkart.com>
Wed, 19 Jul 2017 12:24:37 +0000 (12:24 +0000)
Fixes: http://tracker.ceph.com/issues/20688
Signed-off-by: Abhishek Varshney <abhishek.varshney@flipkart.com>
src/rgw/rgw_bucket.cc

index e8b104509f96868fa217ce8405d35dca840aa1a2..1f2896ea4c10dec6dec1c02acc56262ae60d9c99 100644 (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)