From: Greg Farnum Date: Tue, 23 Mar 2010 19:26:00 +0000 (-0700) Subject: mon: remove dead 'magic' code X-Git-Tag: v0.20~202 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=efd344d4545a35601656ae290aab1ff0dedbdd54;p=ceph.git mon: remove dead 'magic' code --- diff --git a/src/mon/PGMonitor.cc b/src/mon/PGMonitor.cc index 900cb3a24e66..f12351b01ef0 100644 --- a/src/mon/PGMonitor.cc +++ b/src/mon/PGMonitor.cc @@ -59,23 +59,6 @@ void PGMonitor::tick() update_from_paxos(); dout(10) << pg_map << dendl; - - if (!mon->is_leader()) return; - - /* - // magic incantation that Sage told me - - - // Is it the nth second? If not, do nothing. - const int N = 10; //magic number! codify somewhere later - utime_t now = g_clock.now(); - if (now % N) != 0 return; - - if (mon->osdmon->paxos->is_readable()) { - // safely use mon->osdmon->osdmap - } - */ - } void PGMonitor::create_initial(bufferlist& bl)