We accidentally broke it in our last round of changes to support
standby-replay; patch it up again.
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
dout(0) << "Specified oneshot replay mode but not an MDS!" << dendl;
suicide();
}
- want_state = MDSMap::STATE_STANDBY;
+ want_state = MDSMap::STATE_BOOT;
standby_type = wanted_state;
}
request_state(standby_type);
goto out;
+ } else if (state == MDSMap::STATE_STANDBY_REPLAY) {
+ if (standby_type && standby_type != MDSMap::STATE_STANDBY_REPLAY) {
+ want_state = standby_type;
+ beacon_send();
+ state = oldstate;
+ goto out;
+ }
}
if (whoami < 0) {