// Wait a little to improve chances of caller getting
// our response before seeing us disappear from mdsmap
sleep(1);
+ std::lock_guard l(mds_lock);
suicide();
});
+ t.detach();
} else if (command == "respawn") {
outbl.append("Respawning...\n");
r = 0;
// Wait a little to improve chances of caller getting
// our response before seeing us disappear from mdsmap
sleep(1);
+ std::lock_guard l(mds_lock);
respawn();
});
+ t.detach();
} else if (command == "heap") {
if (!ceph_using_tcmalloc()) {
ss << "not using tcmalloc";