The call should update last_scrub_stamp, too, without
requiring an extra call to on_scrub_schedule_input_change()
Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
recovery_state.update_stats(
[t](auto &history, auto &stats) {
set_last_deep_scrub_stamp(t, history, stats);
+ set_last_scrub_stamp(t, history, stats);
return true;
});
on_scrub_schedule_input_change();
asok_response_section(f, true, scrub_level, stamp);
if (scrub_level == scrub_level_t::deep) {
+ // this call sets both stamps
m_pg->set_last_deep_scrub_stamp(stamp);
+ } else {
+ m_pg->set_last_scrub_stamp(stamp);
}
- // and in both cases:
- m_pg->set_last_scrub_stamp(stamp);
}
// when asked to force a high-priority scrub