]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/scrub: log parameter entering scrub_requested()
authorRonen Friedman <rfriedma@redhat.com>
Mon, 5 Feb 2024 12:02:14 +0000 (06:02 -0600)
committerRonen Friedman <rfriedma@redhat.com>
Fri, 16 Feb 2024 06:34:25 +0000 (00:34 -0600)
... and a minor formatting fix in the same function.

Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
src/osd/scrubber/pg_scrubber.cc

index 1c87c3b88a2587ed6cb3824b37e6058763ba087d..5ba720b2c503ee910ccf09ca527bd2663091901b 100644 (file)
@@ -606,11 +606,12 @@ scrub_level_t PgScrubber::scrub_requested(
   const bool deep_requested = (scrub_level == scrub_level_t::deep) ||
                              (scrub_type == scrub_type_t::do_repair);
   dout(10) << fmt::format(
-                 "{}: {} {} scrub requested. Prev stamp: {}. Registered? {}",
+                 "{}: {}{} scrub requested. "
+                 "@entry:{},last-stamp:{:s},Registered?{}",
                  __func__,
-                 (scrub_type == scrub_type_t::do_repair ? " repair + "
-                                                        : " not-repair + "),
-                 (deep_requested ? "deep" : "shallow"),
+                 (scrub_type == scrub_type_t::do_repair ? "repair + "
+                                                        : "not-repair + "),
+                 (deep_requested ? "deep" : "shallow"), req_flags,
                  m_scrub_job->get_sched_time(), registration_state())
           << dendl;
 
@@ -620,7 +621,6 @@ scrub_level_t PgScrubber::scrub_requested(
   // User might intervene, so clear this
   req_flags.need_auto = false;
   req_flags.req_scrub = true;
-
   dout(20) << fmt::format("{}: planned scrub:{}", __func__, req_flags) << dendl;
 
   update_scrub_job(req_flags);