]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: restoring a log message required by osd-scrub-test.sh 38111/head
authorRonen Friedman <rfriedma@redhat.com>
Thu, 3 Dec 2020 15:05:50 +0000 (17:05 +0200)
committerRonen Friedman <rfriedma@redhat.com>
Thu, 10 Dec 2020 14:52:11 +0000 (16:52 +0200)
Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
src/osd/pg_scrubber.cc

index 8894106dca09449ab48529a08da43ac8c8a871d8..a558e0e885795c82140fd8384bae6f3a51a1b7f0 100644 (file)
@@ -181,7 +181,7 @@ bool PgScrubber::verify_against_abort(epoch_t epoch_to_verify)
   }
 
   dout(15) << __func__ << " aborting. incoming epoch: " << epoch_to_verify
-          << "vs last-aborted: " << m_last_aborted << dendl;
+          << " vs last-aborted: " << m_last_aborted << dendl;
 
   // if we were not aware of the abort before - kill the scrub.
   if (epoch_to_verify > m_last_aborted) {
@@ -699,6 +699,9 @@ void PgScrubber::add_delayed_scheduling()
     m_needs_sleep = false;
     m_sleep_started_at = ceph_clock_now();
 
+    // the following log line is used by osd-scrub-test.sh
+    dout(20) << __func__ << " scrub state is PendingTimer, sleeping" << dendl;
+
     // the 'delayer' for crimson is different. Will be factored out.
 
     spg_t pgid = m_pg->get_pgid();
@@ -1047,17 +1050,17 @@ int PgScrubber::build_scrub_map_chunk(
     int r = m_pg->get_pgbackend()->be_scan_list(map, pos);
     dout(10) << __func__ << " be r " << r << dendl;
     if (r == -EINPROGRESS) {
-      dout(8 /*20*/) << __func__ << " in progress" << dendl;
+      dout(20) << __func__ << " in progress" << dendl;
       return r;
     }
   }
 
   // finish
-  dout(8 /*20*/) << __func__ << " finishing" << dendl;
+  dout(20) << __func__ << " finishing" << dendl;
   ceph_assert(pos.done());
   m_pg->_repair_oinfo_oid(map);
 
-  dout(8 /*20*/) << __func__ << " done, got " << map.objects.size() << " items" << dendl;
+  dout(20) << __func__ << " done, got " << map.objects.size() << " items" << dendl;
   return 0;
 }
 
@@ -1649,10 +1652,9 @@ void PgScrubber::scrub_finish()
          stats.stats.sum.num_large_omap_objects = m_omap_stats.large_omap_objects;
          stats.stats.sum.num_omap_bytes = m_omap_stats.omap_bytes;
          stats.stats.sum.num_omap_keys = m_omap_stats.omap_keys;
-         dout(10 /*25*/) << "scrub_finish shard " << m_pg_whoami
-                         << " num_omap_bytes = " << stats.stats.sum.num_omap_bytes
-                         << " num_omap_keys = " << stats.stats.sum.num_omap_keys
-                         << dendl;
+         dout(25) << "scrub_finish shard " << m_pg_whoami
+                  << " num_omap_bytes = " << stats.stats.sum.num_omap_bytes
+                  << " num_omap_keys = " << stats.stats.sum.num_omap_keys << dendl;
        } else {
          stats.stats.sum.num_shallow_scrub_errors = m_shallow_errors;
          // XXX: last_clean_scrub_stamp doesn't mean the pg is not inconsistent
@@ -2222,4 +2224,4 @@ ostream& operator<<(ostream& out, const MapsCollectionStatus& sf)
   return out << " ] ";
 }
 
-}  // namespace Scrub
\ No newline at end of file
+}  // namespace Scrub