}
} else {
// already had it. did the mapping change?
- if (epoch < pg->info.history.same_interval_since) {
+ if (epoch < pg->get_same_interval_since()) {
dout(10) << *pg << __func__ << " acting changed in "
- << pg->info.history.same_interval_since
+ << pg->get_same_interval_since()
<< " (msg from " << epoch << ")" << dendl;
} else {
pg->queue_peering_event(evt);
} else {
pg->process_peering_event(&rctx);
}
- need_up_thru = pg->need_up_thru || need_up_thru;
- same_interval_since = MAX(pg->info.history.same_interval_since,
+ need_up_thru = pg->get_need_up_thru() || need_up_thru;
+ same_interval_since = MAX(pg->get_same_interval_since(),
same_interval_since);
if (!split_pgs.empty()) {
rctx.on_applied->add(new C_CompleteSplits(this, split_pgs));
const pg_history_t& get_history() const {
return info.history;
}
+ bool get_need_up_thru() const {
+ return need_up_thru;
+ }
+ epoch_t get_same_interval_since() const {
+ return info.history.same_interval_since;
+ }
void set_last_scrub_stamp(utime_t t) {
info.history.last_scrub_stamp = t;