This old bit of code was using standby_for_rank to determine what rank it
should follow but, for the last few releases, the Monitor always sets the the
rank to follow.
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
monc->sub_got("mdsmap", mdsmap->get_epoch());
- // Calculate my effective rank (either my owned rank or my
- // standby_for_rank if in standby replay)
+ // Calculate my effective rank (either my owned rank or the rank I'm following if STATE_STANDBY_REPLAY
mds_rank_t whoami = mdsmap->get_rank_gid(mds_gid_t(monc->get_global_id()));
// verify compatset
}
}
- if (whoami == MDS_RANK_NONE &&
- new_state == MDSMap::STATE_STANDBY_REPLAY) {
- whoami = mdsmap->get_mds_info_gid(mds_gid_t(monc->get_global_id())).standby_for_rank;
- }
-
// see who i am
dout(10) << "my gid is " << monc->get_global_id() << dendl;
dout(10) << "map says I am mds." << whoami << "." << incarnation