]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: Fix an if so that PGMon doesn't send some reads on to leader
authorGreg Farnum <gregf@hq.newdream.net>
Fri, 23 Oct 2009 17:59:58 +0000 (10:59 -0700)
committerGreg Farnum <gregf@hq.newdream.net>
Fri, 23 Oct 2009 21:14:46 +0000 (14:14 -0700)
src/mon/PGMonitor.cc

index de5de1c4a770ce939696f3c750056fa37d352649..416d1fd80501a3862fa694325b936a0cee0d6386 100644 (file)
@@ -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