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 58cdb20 + b7fca36 commit f838339Copy full SHA for f838339
src/osd/scrubber/scrub_machine.cc
@@ -237,9 +237,7 @@ std::optional<pg_scrubbing_status_t> Session::get_reservation_status() const
237
s.m_osd_to_respond = req ? req->osd : 0;
238
s.m_ordinal_of_requested_replica = m_reservations->active_requests_cnt();
239
s.m_num_to_reserve = scrbr->get_pg()->get_actingset().size() - 1;
240
- s.m_duration_seconds =
241
- duration_cast<seconds>(context<ScrubMachine>().get_time_scrubbing())
242
- .count();
+ s.m_duration_seconds = ceil<seconds>(machine.get_time_scrubbing()).count();
243
return s;
244
}
245
0 commit comments