We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 862104b + ab49ca0 commit 2954608Copy full SHA for 2954608
src/osd/scrubber/pg_scrubber.cc
@@ -766,8 +766,13 @@ void PgScrubber::on_operator_periodic_cmd(
766
asok_response_section(f, true, scrub_level, stamp);
767
768
if (scrub_level == scrub_level_t::deep) {
769
+ const auto saved_shallow_stamp = m_pg->info.history.last_scrub_stamp;
770
// this call sets both stamps
771
m_pg->set_last_deep_scrub_stamp(stamp);
772
+ // restore the shallow stamp, as otherwise it will be scheduled before
773
+ // the deep, failing whatever test code called us (this is a test-only
774
+ // interface).
775
+ m_pg->set_last_scrub_stamp(saved_shallow_stamp);
776
} else {
777
m_pg->set_last_scrub_stamp(stamp);
778
}
0 commit comments