mirror of
https://github.com/ceph/ceph
synced 2025-01-31 07:22:56 +00:00
mon/MonmapMonitor: make 'mon remove ...' idempotent
Signed-off-by: Sage Weil <sage@inktank.com>
This commit is contained in:
parent
2338a329f5
commit
4183b74b00
@ -322,8 +322,8 @@ bool MonmapMonitor::prepare_command(MMonCommand *m)
|
|||||||
string name;
|
string name;
|
||||||
cmd_getval(g_ceph_context, cmdmap, "name", name);
|
cmd_getval(g_ceph_context, cmdmap, "name", name);
|
||||||
if (!pending_map.contains(name)) {
|
if (!pending_map.contains(name)) {
|
||||||
err = -ENOENT;
|
err = 0;
|
||||||
ss << "mon " << name << " does not exist";
|
ss << "mon " << name << " does not exist or has already been removed";
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user