From: Greg Farnum Date: Fri, 23 Oct 2009 17:59:58 +0000 (-0700) Subject: mon: Fix an if so that PGMon doesn't send some reads on to leader X-Git-Tag: v0.18~171^2~14 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=bb2bea06ba8b7bee6b37ce5142f2e11369471bba;p=ceph.git mon: Fix an if so that PGMon doesn't send some reads on to leader --- diff --git a/src/mon/PGMonitor.cc b/src/mon/PGMonitor.cc index de5de1c4a770..416d1fd80501 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