]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: put g_ceph_context on shutdown
authorSage Weil <sage@inktank.com>
Sat, 20 Jul 2013 15:47:51 +0000 (08:47 -0700)
committerSage Weil <sage@inktank.com>
Sat, 20 Jul 2013 15:47:51 +0000 (08:47 -0700)
This makes us shut down lots of threads.

Signed-off-by: Sage Weil <sage@inktank.com>
src/ceph_mds.cc

index 9206312bc66956942d01c2956e3e0f0396582c28..a8b4519d4b2926f6b50dce2d4fb683c1f12b9697 100644 (file)
@@ -314,14 +314,15 @@ int main(int argc, const char **argv)
   if (mds->is_stopped())
     delete mds;
 
+  g_ceph_context->put();
+
   // cd on exit, so that gmon.out (if any) goes into a separate directory for each node.
   char s[20];
   snprintf(s, sizeof(s), "gmon/%d", getpid());
   if ((mkdir(s, 0755) == 0) && (chdir(s) == 0)) {
-    dout(0) << "ceph-mds: gmon.out should be in " << s << dendl;
+    cerr << "ceph-mds: gmon.out should be in " << s << std::endl;
   }
 
-  generic_dout(0) << "stopped." << dendl;
   return 0;
 }