From bb2bea06ba8b7bee6b37ce5142f2e11369471bba Mon Sep 17 00:00:00 2001 From: Greg Farnum Date: Fri, 23 Oct 2009 10:59:58 -0700 Subject: [PATCH] mon: Fix an if so that PGMon doesn't send some reads on to leader --- src/mon/PGMonitor.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mon/PGMonitor.cc b/src/mon/PGMonitor.cc index de5de1c4a770c..416d1fd80501a 100644 --- a/src/mon/PGMonitor.cc +++ b/src/mon/PGMonitor.cc @@ -275,7 +275,7 @@ bool PGMonitor::preprocess_pg_stats(MPGStats *stats) mon->osdmon()->send_latest(stats, stats->epoch+1); // any new osd or pg info? - if (pg_map.osd_stat.count(from) || + if (!pg_map.osd_stat.count(from) || pg_map.osd_stat[from] != stats->osd_stat) return false; // new osd stat -- 2.39.5