mirror of
https://github.com/ceph/ceph
synced 2025-02-24 19:47:44 +00:00
mds/MDSDaemon: fix asok 'exit' and 'respawn' commands
Signed-off-by: Sage Weil <sage@redhat.com>
This commit is contained in:
parent
0852827258
commit
e69bbada0b
@ -148,8 +148,10 @@ void MDSDaemon::asok_command(
|
||||
// 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;
|
||||
@ -157,8 +159,10 @@ void MDSDaemon::asok_command(
|
||||
// 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";
|
||||
|
Loading…
Reference in New Issue
Block a user