]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/PGMonitor: drop some dead code
authorSage Weil <sage@inktank.com>
Tue, 18 Jun 2013 22:22:35 +0000 (15:22 -0700)
committerSage Weil <sage@inktank.com>
Tue, 25 Jun 2013 16:57:00 +0000 (09:57 -0700)
Signed-off-by: Sage Weil <sage@inktank.com>
src/mon/PGMonitor.cc

index 2540a7245da2ee74e55b5ce0266443c182f2fdc5..5f37729559b92f60dbc40cf199922c624a1382e2 100644 (file)
@@ -517,18 +517,6 @@ bool PGMonitor::prepare_pg_stats(MPGStats *stats)
   else
     dout(10) << " got osd." << from << " " << stats->osd_stat << " (first report)" << dendl;
 
-  // apply to live map too (screw consistency)
-  /*
-    actually, no, don't.  that screws up our "latest" stash.  and can
-    lead to weird output where things appear to jump backwards in
-    time... that's just confusing.
-
-  if (pg_map.osd_stat.count(from))
-    pg_map.stat_osd_sub(pg_map.osd_stat[from]);
-  pg_map.osd_stat[from] = stats->osd_stat;
-  pg_map.stat_osd_add(stats->osd_stat);
-  */
-
   // pg stats
   MPGStatsAck *ack = new MPGStatsAck;
   ack->set_tid(stats->get_tid());