dout(10) << " no lastmap" << dendl;
dirty_info = true;
} else {
+ std::stringstream debug;
bool new_interval = pg_interval_t::check_new_interval(
oldacting, newacting,
oldup, newup,
info.history.same_interval_since,
info.history.last_epoch_clean,
osdmap,
- lastmap, info.pgid.pool(), info.pgid, &past_intervals);
+ lastmap,
+ info.pgid.pool(),
+ info.pgid,
+ &past_intervals,
+ &debug);
+ dout(10) << __func__ << ": check_new_interval output: "
+ << debug.str() << dendl;
if (new_interval) {
dout(10) << " noting past " << past_intervals.rbegin()->second << dendl;
dirty_info = true;
if (i.acting.size() >=
osdmap->get_pools().find(pool_id)->second.min_size) {
+ if (out)
+ *out << "generate_past_intervals " << i
+ << ": not rw,"
+ << " up_thru " << lastmap->get_up_thru(i.acting[0])
+ << " up_from " << lastmap->get_up_from(i.acting[0])
+ << " last_epoch_clean " << last_epoch_clean
+ << std::endl;
if (lastmap->get_up_thru(i.acting[0]) >= i.first &&
lastmap->get_up_from(i.acting[0]) <= i.first) {
i.maybe_went_rw = true;