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>
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());
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);