mirror of
https://github.com/ceph/ceph
synced 2025-01-18 17:12:29 +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;
|
||||
cmd_getval(g_ceph_context, cmdmap, "name", name);
|
||||
if (!pending_map.contains(name)) {
|
||||
err = -ENOENT;
|
||||
ss << "mon " << name << " does not exist";
|
||||
err = 0;
|
||||
ss << "mon " << name << " does not exist or has already been removed";
|
||||
goto out;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user