mon
+- mds injectargs N should take mds# or id. * should bcast to standy mds's.
- paxos need to clean up old states.
- default: simple max of (state count, min age), so that we have at least N hours of history, say?
- osd map: trim only old maps < oldest "in" osd up_from
} else {
errno = 0;
int who = strtol(m->cmd[2].c_str(), 0, 10);
- if (!errno && who >= 0 && mdsmap.is_active(who)) {
- mon->inject_args(mdsmap.get_inst(who), m->cmd[3], paxos->get_version());
- r = 0;
- ss << "ok";
- } else
+ if (!errno && who >= 0) {
+ if (mdsmap.is_active(who)) {
+ mon->inject_args(mdsmap.get_inst(who), m->cmd[3], paxos->get_version());
+ r = 0;
+ ss << "ok";
+ } else {
+ ss << "mds" << who << " not up";
+ r = -ENOENT;
+ }
+ } else
ss << "specify mds number or *";
}
}