]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/scrub: stop sending bogus digest-update event messages 45068/head
authorRonen Friedman <rfriedma@redhat.com>
Thu, 17 Feb 2022 09:29:22 +0000 (09:29 +0000)
committerRonen Friedman <rfriedma@redhat.com>
Thu, 17 Feb 2022 09:38:40 +0000 (09:38 +0000)
A minimal change extracted from PR#44050, to facilitate
backporting.

The multitudes of bogus events generated fill up the logs.

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

index 127f9fab56bd9a94d8103c383288fe6b537a9cb6..2e895a04169c7458e8f21b32c1b4b1a4f27e0fce 100644 (file)
@@ -87,9 +87,8 @@ void PrimaryLogScrub::submit_digest_fixes(const digests_fixes_t& fixes)
 
 
     ctx->register_on_success([this]() {
-      dout(20) << "updating scrub digest " << num_digest_updates_pending
-               << dendl;
-      if (--num_digest_updates_pending <= 0) {
+      if ((num_digest_updates_pending >= 1) &&
+          (--num_digest_updates_pending == 0)) {
         m_osds->queue_scrub_digest_update(m_pl_pg,
                                           m_pl_pg->is_scrub_blocking_ops());
       }