f->dump_bool("applicable", true);
f->dump_bool("active", true);
+ } else if (is_queued_or_active()) {
+ // instead of adding logic to the FSM to handle this rare
+ // occasion, we will simply ignore it (and let the operators
+ // know they can reissue the command, if still needed).
+ const auto err_text = fmt::format(
+ "{}: pg[{}] scrub not stopped due to transitory state. Reissue!",
+ __func__, m_pg_id.pgid);
+ dout(10) << err_text << dendl;
+
+ f->dump_bool("applicable", false);
+ f->dump_bool("active", true);
+ f->dump_string("error", err_text);
+
} else if (!m_scrub_job->is_registered()) {
const auto err_text = fmt::format(
"{}: pg[{}] is not registered for scrubbing", __func__, m_pg_id.pgid);