diff --git a/src/mon/MonmapMonitor.cc b/src/mon/MonmapMonitor.cc index 195f66350d8..5ec1583b82f 100644 --- a/src/mon/MonmapMonitor.cc +++ b/src/mon/MonmapMonitor.cc @@ -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; }