]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
Revert "mon: don't propose new state from update_from_paxos"
authorSage Weil <sage@newdream.net>
Fri, 18 Nov 2011 17:43:09 +0000 (09:43 -0800)
committerSage Weil <sage@newdream.net>
Fri, 18 Nov 2011 17:43:09 +0000 (09:43 -0800)
This reverts commit 66c628acc8be71a92e801179431e4b938b857b3d.

src/mon/PGMonitor.cc

index b12d08e65f8b7735f1db9783fc257a16be72da30..1a21a291a04228aee927bb79d08399ae1a2cfb8f 100644 (file)
@@ -95,7 +95,6 @@ void PGMonitor::on_active()
   if (mon->is_leader()) {
     check_osd_map(mon->osdmon()->osdmap.epoch);
   }
-  send_pg_creates();
 }
 
 void PGMonitor::tick() 
@@ -184,6 +183,8 @@ bool PGMonitor::update_from_paxos()
       paxosv > max)
     paxos->trim_to(paxosv - max);
 
+  send_pg_creates();
+
   return true;
 }
 
@@ -565,6 +566,8 @@ void PGMonitor::check_osd_map(epoch_t epoch)
   
   if (propose)
     propose_pending();
+
+  send_pg_creates();
 }
 
 void PGMonitor::register_pg(pg_pool_t& pool, pg_t pgid, epoch_t epoch, bool new_pool)