From 90d4afff37c0f2d4cba37c62970be06cc3745e91 Mon Sep 17 00:00:00 2001 From: xie xingguo Date: Mon, 29 Feb 2016 23:50:18 +0800 Subject: [PATCH] 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 --- src/osd/osd_types.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/osd/osd_types.cc b/src/osd/osd_types.cc index 6f26284b69c5f..8ae2a2dab2926 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 && -- 2.39.5