summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSage Weil <sage@inktank.com>2013-07-20 08:47:51 -0700
committerSage Weil <sage@inktank.com>2013-07-20 08:47:51 -0700
commit7e25fecdfeb3d558fcffcbcff64615d16cc83800 (patch)
tree278b71fea4d60914a8bc5f483c06d340267b4233
parent1fd01e3b5ba36bd1843525de14d2f32c24211c7e (diff)
downloadceph-7e25fecdfeb3d558fcffcbcff64615d16cc83800.tar.gz
mds: put g_ceph_context on shutdown
This makes us shut down lots of threads. Signed-off-by: Sage Weil <sage@inktank.com>
-rw-r--r--src/ceph_mds.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ceph_mds.cc b/src/ceph_mds.cc
index 9206312bc66..a8b4519d4b2 100644
--- a/src/ceph_mds.cc
+++ b/src/ceph_mds.cc
@@ -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;
}