From: Kefu Chai Date: Thu, 28 Jan 2021 11:00:46 +0000 (+0800) Subject: osd/PeeringState: log epochs in pre_publish X-Git-Tag: v17.1.0~3115^2~5 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=fc3084b172e1ccfa0e0880006fc08473a8c182fa;p=ceph.git osd/PeeringState: log epochs in pre_publish does not make sense to print log the epochs in pg_stats_publish passed in if it is invalid. Signed-off-by: Kefu Chai --- diff --git a/src/osd/PeeringState.cc b/src/osd/PeeringState.cc index 85c352303e36..0a74aca8ac46 100644 --- a/src/osd/PeeringState.cc +++ b/src/osd/PeeringState.cc @@ -3928,8 +3928,8 @@ std::optional 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)); } }