From: Sage Weil Date: Wed, 7 Oct 2015 03:57:50 +0000 (-0400) Subject: mon/PGMonitor: only map and send pg creates post paxos update X-Git-Tag: v10.0.1~26^2~17 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=0938bf055deec0183e1159f9bfcfa98a6757bc4b;p=ceph.git mon/PGMonitor: only map and send pg creates post paxos update These other call sites are no longer needed. Signed-off-by: Sage Weil --- diff --git a/src/mon/PGMonitor.cc b/src/mon/PGMonitor.cc index fb0b53537d62..cc8d058de89f 100644 --- a/src/mon/PGMonitor.cc +++ b/src/mon/PGMonitor.cc @@ -276,11 +276,6 @@ void PGMonitor::update_from_paxos(bool *need_bootstrap) assert(version == pg_map.version); - if (mon->osdmon()->osdmap.get_epoch()) { - map_pg_creates(); - send_pg_creates(); - } - update_logger(); } @@ -308,6 +303,7 @@ void PGMonitor::upgrade_format() void PGMonitor::post_paxos_update() { + dout(10) << __func__ << dendl; if (mon->osdmon()->osdmap.get_epoch()) { map_pg_creates(); send_pg_creates(); @@ -958,11 +954,6 @@ void PGMonitor::check_osd_map(epoch_t epoch) if (propose) propose_pending(); - - if (mon->osdmon()->osdmap.get_epoch()) { - map_pg_creates(); - send_pg_creates(); - } } void PGMonitor::register_pg(pg_pool_t& pool, pg_t pgid, epoch_t epoch, bool new_pool)