From: Samuel Just Date: Thu, 2 Feb 2017 20:22:36 +0000 (-0800) Subject: osd_types: just pass last_epoch_started to PriorSet X-Git-Tag: v12.0.3~129^2~31 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=6f1783d9ba456aaf715051cfb1f441a057450982;p=ceph.git osd_types: just pass last_epoch_started to PriorSet Signed-off-by: Samuel Just --- diff --git a/src/osd/PG.cc b/src/osd/PG.cc index e13666fc9203..37b246dc0d8f 100644 --- a/src/osd/PG.cc +++ b/src/osd/PG.cc @@ -843,11 +843,11 @@ PastIntervals::PriorSet PG::build_prior() PastIntervals::PriorSet prior = past_intervals.get_prior_set( pool.info.ec_pool(), + info.history.last_epoch_started, get_pgbackend()->get_is_recoverable_predicate(), *get_osdmap(), up, acting, - info, this); if (prior.pg_down) { diff --git a/src/osd/osd_types.cc b/src/osd/osd_types.cc index 47f1e6a6a847..7a10675bafe1 100644 --- a/src/osd/osd_types.cc +++ b/src/osd/osd_types.cc @@ -3510,11 +3510,11 @@ bool PastIntervals::check_new_interval( PastIntervals::PriorSet::PriorSet( const PastIntervals &past_intervals, bool ec_pool, + epoch_t last_epoch_started, IsPGRecoverablePredicate *c, const OSDMap &osdmap, const vector &up, const vector &acting, - const pg_info_t &info, const DoutPrefixProvider *dpp) : ec_pool(ec_pool), pg_down(false), pcontdec(c) { @@ -3578,7 +3578,7 @@ PastIntervals::PriorSet::PriorSet( past_intervals.iterate_mayberw_back_to( ec_pool, - info.history.last_epoch_started, + last_epoch_started, [&](epoch_t start, const set &acting) { ldpp_dout(dpp, 10) << "build_prior maybe_rw interval:" << start << ", acting: " << acting << dendl; diff --git a/src/osd/osd_types.h b/src/osd/osd_types.h index b29d9820f6a2..ea4410c6b18f 100644 --- a/src/osd/osd_types.h +++ b/src/osd/osd_types.h @@ -2731,11 +2731,11 @@ public: PriorSet( const PastIntervals &past_intervals, bool ec_pool, + epoch_t last_epoch_started, IsPGRecoverablePredicate *c, const OSDMap &osdmap, const vector &up, const vector &acting, - const pg_info_t &info, const DoutPrefixProvider *dpp); friend class PastIntervals;