From: xie xingguo Date: Mon, 29 Feb 2016 15:50:18 +0000 (+0800) Subject: osd: fix overload of '==' operator for pg_stat_t X-Git-Tag: v10.1.0~252^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=90d4afff37c0f2d4cba37c62970be06cc3745e91;p=ceph.git osd: fix overload of '==' operator for pg_stat_t The newly added fields -- 'last_peered' and 'last_became_peered' are not compared. Fixes: #14921 Signed-off-by: xie xingguo --- diff --git a/src/osd/osd_types.cc b/src/osd/osd_types.cc index 6f26284b69c5..8ae2a2dab292 100644 --- a/src/osd/osd_types.cc +++ b/src/osd/osd_types.cc @@ -2518,6 +2518,7 @@ bool operator==(const pg_stat_t& l, const pg_stat_t& r) l.last_fresh == r.last_fresh && l.last_change == r.last_change && l.last_active == r.last_active && + l.last_peered == r.last_peered && l.last_clean == r.last_clean && l.last_unstale == r.last_unstale && l.last_undegraded == r.last_undegraded && @@ -2542,6 +2543,7 @@ bool operator==(const pg_stat_t& l, const pg_stat_t& r) l.mapping_epoch == r.mapping_epoch && l.blocked_by == r.blocked_by && l.last_became_active == r.last_became_active && + l.last_became_peered == r.last_became_peered && l.dirty_stats_invalid == r.dirty_stats_invalid && l.omap_stats_invalid == r.omap_stats_invalid && l.hitset_stats_invalid == r.hitset_stats_invalid &&