]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rbd-mirror: don't delete global perf counters before shut down
authorJason Dillaman <dillaman@redhat.com>
Thu, 21 Feb 2019 15:19:19 +0000 (10:19 -0500)
committerJason Dillaman <dillaman@redhat.com>
Mon, 25 Feb 2019 18:31:43 +0000 (13:31 -0500)
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/tools/rbd_mirror/main.cc

index c19ff4f568115ead8c0613082ce9db70a1af87e6..8a5111e3aec60610facd563479024815479c9356 100644 (file)
@@ -96,9 +96,9 @@ int main(int argc, const char **argv)
   shutdown_async_signal_handler();
 
   g_ceph_context->get_perfcounters_collection()->remove(g_perf_counters);
-  delete g_perf_counters;
 
   delete mirror;
+  delete g_perf_counters;
 
   return r < 0 ? EXIT_SUCCESS : EXIT_FAILURE;
 }