Skip to content

Commit

Permalink
Merge remote-tracking branch 'gh/hammer'
Browse files Browse the repository at this point in the history
Conflicts:
	src/gmock
	src/osd/ReplicatedPG.cc
  • Loading branch information
liewegas committed Mar 30, 2015
2 parents c7de236 + 6f4936e commit 497737a
Show file tree
Hide file tree
Showing 4 changed files with 1,630 additions and 1,643 deletions.
11 changes: 5 additions & 6 deletions src/osd/PG.cc
Expand Up @@ -4714,12 +4714,6 @@ void PG::start_peering_interval(

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;
Expand Down Expand Up @@ -5567,6 +5561,10 @@ PG::RecoveryState::Primary::Primary(my_context ctx)
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)
Expand Down Expand Up @@ -5600,6 +5598,7 @@ void PG::RecoveryState::Primary::exit()
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--------*/
Expand Down

0 comments on commit 497737a

Please sign in to comment.