]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/scrub: stats_of_handled_objects(): reduce irrelevant logs 42953/head
authorRonen Friedman <rfriedma@redhat.com>
Fri, 27 Aug 2021 13:37:07 +0000 (13:37 +0000)
committerRonen Friedman <rfriedma@redhat.com>
Fri, 27 Aug 2021 13:44:08 +0000 (13:44 +0000)
PrimaryLogScrub::stats_of_handled_objects() is responsible for a large
share of all scrub-related logs, as it emits a log message even when
called for non-active or not scrubbing PGs.

This PR removes these useless logs.

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

index 244be9e861e8a0ed7b1859bcf3337d87bbfc9929..dd5aa84e8babf3eb83b8d3519849789024cd2261 100644 (file)
@@ -574,15 +574,13 @@ void PrimaryLogScrub::stats_of_handled_objects(const object_stat_sum_t& delta_st
   // scrubbed and their stats have already been added to the scrubber. Objects after that
   // point haven't been included in the scrubber's stats accounting yet, so they will be
   // included when the scrubber gets to that object.
-  dout(15) << __func__ << " soid: " << soid << " scrub is active? " << is_scrub_active()
-          << dendl;
   if (is_primary() && is_scrub_active()) {
     if (soid < m_start) {
       dout(20) << __func__ << " " << soid << " < [" << m_start << "," << m_end << ")"
               << dendl;
       m_scrub_cstat.add(delta_stats);
     } else {
-      dout(20) << __func__ << " " << soid << " >= [" << m_start << "," << m_end << ")"
+      dout(25) << __func__ << " " << soid << " >= [" << m_start << "," << m_end << ")"
               << dendl;
     }
   }