]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw/rgw_op.cc: Fix error message in rgw_user_get_all_buckets_stats 18781/head
authoriliul <liul.stone@gmail.com>
Tue, 7 Nov 2017 07:17:26 +0000 (15:17 +0800)
committeriliul <liul124@chinaunicom.cn>
Thu, 9 Nov 2017 13:36:43 +0000 (13:36 +0000)
Signed-off-by: iliul <liul.stone@gmail.com>
src/rgw/rgw_op.cc

index e68d8739e2e8e0ff600349f6f07de1f12244b88d..85bc221d0e0a2f48f495912e540d053613c7fee9 100644 (file)
@@ -1942,20 +1942,20 @@ void RGWGetUsage::execute()
 
   op_ret = rgw_user_sync_all_stats(store, s->user->user_id);
   if (op_ret < 0) {
-    ldout(store->ctx(), 0) << "ERROR: failed to sync user stats" << dendl;
+    ldout(store->ctx(), 0) << "ERROR: failed to sync user stats" << dendl;
     return;
   }
 
   op_ret = rgw_user_get_all_buckets_stats(store, s->user->user_id, buckets_usage);
   if (op_ret < 0) {
-    cerr << "ERROR: failed to sync user stats: " << std::endl;
-    return ;
+    ldout(store->ctx(), 0) << "ERROR: failed to get user's buckets stats" << dendl;
+    return;
   }
 
   string user_str = s->user->user_id.to_str();
   op_ret = store->cls_user_get_header(user_str, &header);
   if (op_ret < 0) {
-    ldout(store->ctx(), 0) << "ERROR: can't read user header"  << dendl;
+    ldout(store->ctx(), 0) << "ERROR: can't read user header"  << dendl;
     return;
   }