// -- there was a change! --
kick();
- set_last_peering_reset();
-
vector<int> oldacting, oldup;
int oldrole = get_role();
int oldprimary = get_primary();
}
void PG::RecoveryState::Initial::exit() {
- PG *pg = context< RecoveryMachine >().pg;
- pg->set_last_peering_reset();
context< RecoveryMachine >().log_exit(state_name, enter_time);
}
/*------Started-------*/
PG::RecoveryState::Started::Started(my_context ctx) : my_base(ctx) {
state_name = "Started";
+ PG *pg = context< RecoveryMachine >().pg;
+ pg->set_last_peering_reset();
context< RecoveryMachine >().log_enter(state_name);
}