We should never have a laggy standby, so technically this doesn't change
any behavior, but it makes the flow less confusing.
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
pending_mdsmap.mds_info.erase(gid);
last_beacon.erase(gid);
do_propose = true;
- } else if (!info.laggy()) {
+ } else {
if (info.state == MDSMap::STATE_STANDBY ||
info.state == MDSMap::STATE_STANDBY_REPLAY) {
// remove it
<< " " << ceph_mds_state_name(info.state)
<< " (laggy)" << dendl;
pending_mdsmap.mds_info.erase(gid);
- } else {
+ } else if (!info.laggy()) {
dout(10) << " marking " << gid << " " << info.addr << " mds" << info.rank << "." << info.inc
<< " " << ceph_mds_state_name(info.state)
<< " laggy" << dendl;