mirror of
https://github.com/ceph/ceph
synced 2025-01-20 01:51:34 +00:00
Merge remote-tracking branch 'gh/hammer'
Conflicts: src/gmock src/osd/ReplicatedPG.cc
This commit is contained in:
commit
497737aabf
@ -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
@ -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 *
|
||||
|
Loading…
Reference in New Issue
Block a user