]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: finalize perfcounters after shutting down storage 3554/head
authorYehuda Sadeh <yehuda@redhat.com>
Fri, 30 Jan 2015 22:34:32 +0000 (14:34 -0800)
committerYehuda Sadeh <yehuda@redhat.com>
Fri, 30 Jan 2015 22:34:32 +0000 (14:34 -0800)
Fixes: #10572
Backport: giant, firefly
First disable the storage subsystem, then disable perfcounters.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
src/rgw/rgw_main.cc

index 2f2b755a762e2fb2d0a1a4fb54c917ca8a47103d..33a3ed3722bd8824de72c44c402e10a85f4b8c2f 100644 (file)
@@ -1198,8 +1198,6 @@ int main(int argc, const char **argv)
 
   delete olog;
 
-  rgw_perf_stop(g_ceph_context);
-
   RGWStoreManager::close_storage(store);
 
   rgw_tools_cleanup();
@@ -1211,6 +1209,8 @@ int main(int argc, const char **argv)
 
   ceph::crypto::shutdown();
 
+  rgw_perf_stop(g_ceph_context);
+
   signal_fd_finalize();
 
   return 0;