This clarifies that the state should be reset as if we are restarting
backfill: this includes the missing set.
Signed-off-by: Samuel Just <sjust@redhat.com>
pg->dirty_big_info = true; // maybe.
PGLogEntryHandler rollbacker;
- pg->pg_log.claim_log_and_clear_rollback_info(msg->log, &rollbacker);
+ pg->pg_log.reset_backfill_claim_log(msg->log, &rollbacker);
rollbacker.apply(pg, t);
pg->pg_log.reset_backfill();
//////////////////// get or set log & missing ////////////////////
- void claim_log_and_clear_rollback_info(const pg_log_t &o, LogEntryHandler *h) {
+ void reset_backfill_claim_log(const pg_log_t &o, LogEntryHandler *h) {
log.can_rollback_to = log.head;
log.advance_rollback_info_trimmed_to(log.head, h);
log.claim_log_and_clear_rollback_info(o);
rewind_divergent_log(t, eversion_t(1, 5), info, &h,
dirty_info, dirty_big_info);
pg_log_t log;
- claim_log_and_clear_rollback_info(log, &h);
+ reset_backfill_claim_log(log, &h);
}
}