remove the processing of ”mon add“ && “mon remove” in the preprocess_command;
delete unused "get_monmap(MonMap &m)"
Signed-off-by: huanwen ren <ren.huanwen@zte.com.cn>
if (p != mon->monmap)
delete p;
}
- else if (prefix == "mon add")
- return false;
- else if (prefix == "mon remove")
- return false;
reply:
if (r != -1) {
}
return 0;
}
-
-int MonmapMonitor::get_monmap(MonMap &m)
-{
- dout(10) << __func__ << dendl;
- bufferlist monmap_bl;
-
- int err = get_monmap(monmap_bl);
- if (err < 0) {
- return err;
- }
- m.decode(monmap_bl);
- return 0;
-}