That conditional test was from before we redid the mds states
// and is there a non-laggy standby that can take over for us?
entity_addr_t sa;
if (info.rank >= 0 &&
- info.state > 0 && //|| info.state == MDSMap::STATE_STANDBY_REPLAY) &&
pending_mdsmap.find_standby_for(info.rank, info.name, sa)) {
MDSMap::mds_info_t& si = pending_mdsmap.mds_info[sa];
dout(10) << " replacing " << addr << " mds" << info.rank << "." << info.inc
#define dout_prefix _prefix(this)
static ostream& _prefix(Monitor *mon) {
return *_dout << dbeginl
- << " mon" << mon->whoami
+ << "mon" << mon->whoami
<< (mon->is_starting() ?
(const char*)"(starting)" :
(mon->is_leader() ?