out << " planned AUTO_REPAIR";
if (sf.must_deep_scrub)
out << " MUST_DEEP_SCRUB";
- if (sf.must_scrub)
- out << " MUST_SCRUB";
if (sf.need_auto)
out << " NEED_AUTO";
if (sf.req_scrub)
}
// modifying the planned-scrub flags - to be removed shortly
- req_flags.must_scrub = true;
req_flags.must_deep_scrub = deep_requested;
req_flags.must_repair = repair_requested;
// User might intervene, so clear this
// e.g. - the 'aborted_schedule' data should be passed thru the scrubber.
// In this current patchwork, for example, we are only guessing at
// the original value of 'must_deep_scrub'.
- m_planned_scrub.must_scrub = m_planned_scrub.must_deep_scrub ||
- m_planned_scrub.must_scrub;
m_planned_scrub.must_repair = m_planned_scrub.must_repair || m_is_repair;
m_planned_scrub.need_auto = m_planned_scrub.need_auto || m_flags.auto_repair;
* for the next scrub, and one frozen at initiation (i.e. in pg::queue_scrub())
*/
struct requested_scrub_t {
-
- // flags to indicate explicitly requested scrubs (by admin):
- // bool must_scrub, must_deep_scrub, must_repair, need_auto;
-
- /**
- * 'must_scrub' is set by an admin command (or by need_auto).
- * Affects the priority of the scrubbing, and the sleep periods
- * during the scrub.
- */
- bool must_scrub{false};
-
/**
* scrub must not be aborted.
* Set for explicitly requested scrubs, and for scrubs originated by the
* - scrub_finish() - if can_autorepair is set, and we have errors
*
* If set, will prevent the OSD from casually postponing our scrub. When
- * scrubbing starts, will cause must_scrub, must_deep_scrub and auto_repair to
+ * scrubbing starts, will cause must_deep_scrub and auto_repair to
* be set.
*/
bool need_auto{false};
bool must_deep_scrub{false};
/**
- * If set, we should see must_deep_scrub & must_scrub, too
+ * If set, we should see must_deep_scrub, too
*
* - 'must_repair' is checked by the OSD when scheduling the scrubs.
* - also checked & cleared at pg::queue_scrub()
auto format(const requested_scrub_t& rs, FormatContext& ctx) const
{
return fmt::format_to(ctx.out(),
- "(plnd:{}{}{}{}{}{})",
+ "(plnd:{}{}{}{}{})",
rs.must_repair ? " must_repair" : "",
rs.auto_repair ? " auto_repair" : "",
rs.must_deep_scrub ? " must_deep_scrub" : "",
- rs.must_scrub ? " must_scrub" : "",
rs.need_auto ? " need_auto" : "",
rs.req_scrub ? " req_scrub" : "");
}