mon/MonmapMonitor: make 'mon remove ...' idempotent

Signed-off-by: Sage Weil <sage@inktank.com>
This commit is contained in:
Sage Weil 2013-07-23 17:14:02 -07:00
parent 2338a329f5
commit 4183b74b00

View File

@ -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;
}