]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/PGMonitor: only map and send pg creates post paxos update
authorSage Weil <sage@redhat.com>
Wed, 7 Oct 2015 03:57:50 +0000 (23:57 -0400)
committerSage Weil <sage@redhat.com>
Mon, 23 Nov 2015 13:38:50 +0000 (08:38 -0500)
These other call sites are no longer needed.

Signed-off-by: Sage Weil <sage@redhat.com>
src/mon/PGMonitor.cc

index fb0b53537d62f5c212612572e91a0fe7ffebe73e..cc8d058de89f96d35732339df44fb3a39157e9e5 100644 (file)
@@ -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)