Merge remote-tracking branch 'gh/hammer'

Conflicts:
	src/gmock
	src/osd/ReplicatedPG.cc
This commit is contained in:
Sage Weil 2015-03-30 15:41:13 -07:00
commit 497737aabf
4 changed files with 1630 additions and 1643 deletions

View File

@ -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;
@ -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)
@ -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--------*/

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -951,8 +951,6 @@ protected:
return true;
}
friend struct C_OnPushCommit;
// projected object info
SharedLRU<hobject_t, ObjectContext> object_contexts;
// map from oid.snapdir() to SnapSetContext *