]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: add error message for rgw_perf_start failure. 9808/head
authorYan Jun <yan.jun8@zte.com.cn>
Mon, 20 Jun 2016 06:55:19 +0000 (14:55 +0800)
committerYan Jun <yan.jun8@zte.com.cn>
Mon, 20 Jun 2016 07:09:13 +0000 (15:09 +0800)
Maybe we should concern the error return code of
rgw_perf_start, althought it now returns zero only.

Signed-off-by: Yan Jun <yan.jun8@zte.com.cn>
src/rgw/rgw_main.cc

index ef8f7f762ae1f1f6c8067b0bdb0293fcdcf70662..3268f5d351b4830c637a9619cdaa5cf401c15207 100644 (file)
@@ -312,6 +312,10 @@ int main(int argc, const char **argv)
     return EIO;
   }
   r = rgw_perf_start(g_ceph_context);
+  if (r < 0) {
+    derr << "ERROR: failed starting rgw perf" << dendl;
+    return -r;
+  }
 
   rgw_rest_init(g_ceph_context, store, store->get_zonegroup());
 
@@ -320,9 +324,6 @@ int main(int argc, const char **argv)
   init_timer.shutdown();
   mutex.Unlock();
 
-  if (r) 
-    return 1;
-
   rgw_user_init(store);
   rgw_bucket_init(store->meta_mgr);
   rgw_log_usage_init(g_ceph_context, store);