reg_next_scrub();
- // set CREATING bit until we have peered for the first time.
- if (is_primary() && info.history.last_epoch_started == 0)
- state_set(PG_STATE_CREATING);
- else
- state_clear(PG_STATE_CREATING);
-
// did acting, up, primary|acker change?
if (!lastmap) {
dout(10) << " no lastmap" << dendl;
context< RecoveryMachine >().log_enter(state_name);
PG *pg = context< RecoveryMachine >().pg;
assert(pg->want_acting.empty());
+
+ // set CREATING bit until we have peered for the first time.
+ if (pg->info.history.last_epoch_started == 0)
+ pg->state_set(PG_STATE_CREATING);
}
boost::statechart::result PG::RecoveryState::Primary::react(const MNotifyRec& notevt)
utime_t dur = ceph_clock_now(pg->cct) - enter_time;
pg->osd->recoverystate_perf->tinc(rs_primary_latency, dur);
pg->clear_primary_state();
+ pg->state_clear(PG_STATE_CREATING);
}
/*---------Peering--------*/