]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/PeeringState: log epochs in pre_publish
authorKefu Chai <kchai@redhat.com>
Thu, 28 Jan 2021 11:00:46 +0000 (19:00 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 28 Jan 2021 12:56:55 +0000 (20:56 +0800)
does not make sense to print log the epochs in pg_stats_publish passed
in if it is invalid.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/osd/PeeringState.cc

index 85c352303e365c6e23bf49f72a6cc2082108d8df..0a74aca8ac469a89a8510bfd84dea3b5276d595c 100644 (file)
@@ -3928,8 +3928,8 @@ std::optional<pg_stat_t> PeeringState::prepare_stats_for_publish(
     if ((info.stats.state & PG_STATE_UNDERSIZED) == 0)
       info.stats.last_fullsized = now;
 
-    psdout(15) << "publish_stats_to_osd " << pg_stats_publish.reported_epoch
-              << ":" << pg_stats_publish.reported_seq << dendl;
+    psdout(15) << "publish_stats_to_osd " << pre_publish.reported_epoch
+              << ":" << pre_publish.reported_seq << dendl;
     return std::make_optional(std::move(pre_publish));
   }
 }