If we get as far as authenticating and have no MgrMap that implies the
mon didn't provide us one (despite our request) and we have no access to
the mgr at all.
Signed-off-by: Sage Weil <sage@redhat.com>
ldout(cct, 20) << "cmd: " << cmd << dendl;
- assert(map.epoch > 0);
+ if (map.epoch == 0) {
+ ldout(cct,20) << " no MgrMap, assuming EACCES" << dendl;
+ return -EACCES;
+ }
auto &op = command_table.start_command();
op.cmd = cmd;
MCommand *m = op.get_message({});
session->con->send_message(m);
}
-
return 0;
}