state = mdsmap->get_state(addr);
dout(10) << "map says i am " << addr << " mds" << whoami << " state " << ceph_mds_state_name(state) << dendl;
- if (whoami < 0) {
- if (want_state == MDSMap::STATE_BOOT) {
- dout(10) << "not in map yet" << dendl;
- } else {
- dout(1) << "handle_mds_map i (" << addr
- << ") dne in the mdsmap, killing myself" << dendl;
- suicide();
- }
- goto out;
- }
-
if (state != oldstate)
last_state = oldstate;
goto out;
}
+ if (whoami < 0) {
+ if (want_state == MDSMap::STATE_BOOT) {
+ dout(10) << "not in map yet" << dendl;
+ } else {
+ dout(1) << "handle_mds_map i (" << addr
+ << ") dne in the mdsmap, killing myself" << dendl;
+ suicide();
+ }
+ goto out;
+ }
+
// ??
assert(whoami >= 0);
incarnation = mdsmap->get_inc(whoami);