assert(info_struct_v >= 7);
- // no special action needed for 9->10, just write out the biginfo
-
- // 8 -> 9
- if (info_struct_v <= 8) {
- // no special action needed.
- }
-
// 7 -> 8
if (info_struct_v <= 7) {
pg_log.mark_log_for_rewrite();
t.omap_setkeys(coll, pgmeta_oid, v);
}
+ // 8 -> 9
+ if (info_struct_v <= 8) {
+ // no special action needed.
+ }
+
+ // 9 -> 10
+ if (info_struct_v <= 9) {
+ // previous versions weren't (as) aggressively clearing past_intervals
+ if (info.history.last_epoch_clean >= info.history.same_interval_since) {
+ dout(20) << __func__ << " clearing past_intervals" << dendl;
+ past_intervals.clear();
+ }
+ }
+
dirty_info = true;
dirty_big_info = true;
write_if_dirty(t);