///\todo modify the fields dumped here to match the new scrub-job structure
-void PgScrubber::dump_scrubber(
- ceph::Formatter* f) const
+void PgScrubber::dump_scrubber(ceph::Formatter* f) const
{
Formatter::ObjectSection scrubber_section{*f, "scrubber"sv};
const auto& earliest = m_scrub_job->earliest_target(now_is);
f->dump_bool("must_scrub", earliest.is_high_priority());
f->dump_bool(
- "must_deep_scrub", m_scrub_job->deep_target.is_high_priority());
+ "must_deep_scrub", m_scrub_job->deep_target.is_high_priority());
// 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_stream("scrub_reg_stamp")
- << earliest.sched_info.schedule.not_before;
+ f->dump_named_fmt(
+ "sched_time", "{}", earliest.sched_info.schedule.not_before);
auto sched_state = m_scrub_job->scheduling_state(now_is);
f->dump_string("schedule", sched_state);
f->dump_named_fmt("urgency", "{}", earliest.urgency());
virtual void _scrub_clear_state() {}
- utime_t m_scrub_reg_stamp; ///< stamp we registered for
-
/// the sub-object that manages this PG's scheduling parameters.
/// An Optional instead of a regular member, as we wish to directly
/// control the order of construction/destruction.