ostream& operator<<(ostream& out, const requested_scrub_t& sf)
{
- if (sf.must_repair)
- out << " MUST_REPAIR";
if (sf.auto_repair)
out << " planned AUTO_REPAIR";
if (sf.need_auto)
}
// modifying the planned-scrub flags - to be removed shortly
- req_flags.must_repair = repair_requested;
// User might intervene, so clear this
req_flags.need_auto = false;
req_flags.req_scrub = true;
f->dump_bool("must_scrub", earliest.is_high_priority());
f->dump_bool(
"must_deep_scrub", m_scrub_job->deep_target.is_high_priority());
- f->dump_bool("must_repair", request_flags.must_repair);
+ // the following data item is deprecated. Will be replaced by a set
+ // of reported attributes that match the updated scrub-job state.
+ f->dump_bool("must_repair", earliest.urgency() == urgency_t::must_repair);
f->dump_bool("need_auto", request_flags.need_auto);
f->dump_stream("scrub_reg_stamp")
*/
bool need_auto{false};
- /**
- * - 'must_repair' is checked by the OSD when scheduling the scrubs.
- * - also checked & cleared at pg::queue_scrub()
- */
- bool must_repair{false};
-
/*
* the value of auto_repair is determined in sched_scrub() (once per scrub.
* previous value is not remembered). Set if
auto format(const requested_scrub_t& rs, FormatContext& ctx) const
{
return fmt::format_to(ctx.out(),
- "(plnd:{}{}{}{})",
- rs.must_repair ? " must_repair" : "",
+ "(plnd:{}{}{})",
rs.auto_repair ? " auto_repair" : "",
rs.need_auto ? " need_auto" : "",
rs.req_scrub ? " req_scrub" : "");