We can (currently) get into a situation where we don't have the full
history back to last_epoch_clean because non-primaries record past
intervals but don't initially have the full history, resulting in a partial
recent history.
If this happens, only fill in what's missing; no need to rebuild the recent
parts too.
Signed-off-by: Sage Weil <sage@newdream.net>
<< stop << dendl;
return;
}
- dout(10) << __func__ << " only have past intervals back to " << pif->first << ", recalculating" << dendl;
- past_intervals.clear();
+ dout(10) << __func__ << " only have past intervals back to " << pif->first << dendl;
+ last_epoch = pif->first - 1;
}
dout(10) << __func__ << " over epochs " << stop << "-" << last_epoch << dendl;