} else if (prefix == "mds cluster_down") {
if (pending_mdsmap.test_flag(CEPH_MDSMAP_DOWN)) {
ss << "mdsmap already marked DOWN";
- r = -EPERM;
} else {
pending_mdsmap.set_flag(CEPH_MDSMAP_DOWN);
ss << "marked mdsmap DOWN";
- r = 0;
}
-
+ r = 0;
} else if (prefix == "mds cluster_up") {
if (pending_mdsmap.test_flag(CEPH_MDSMAP_DOWN)) {
pending_mdsmap.clear_flag(CEPH_MDSMAP_DOWN);
ss << "unmarked mdsmap DOWN";
- r = 0;
} else {
ss << "mdsmap not marked DOWN";
- r = -EPERM;
}
-
+ r = 0;
} else if (prefix == "mds compat rm_compat") {
int64_t f;
cmd_getval(g_ceph_context, cmdmap, "feature", f);