]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/OSDMonitor: cleanup pending_created_pgs after done with it 14898/head
authorKefu Chai <kchai@redhat.com>
Mon, 1 May 2017 17:10:54 +0000 (01:10 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 1 May 2017 17:11:06 +0000 (01:11 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/mon/OSDMonitor.cc

index a258d502c9fbb882246f771f0ba9d1f042da6444..0271f1ba14e257503ff6fb8c8cfa166f18a52484 100644 (file)
@@ -925,6 +925,7 @@ OSDMonitor::update_pending_pgs(const OSDMap::Incremental& inc)
     pending_creatings.created_pools.insert(pg.pool());
     pending_creatings.pgs.erase(pg);
   }
+  pending_created_pgs.clear();
   // PAXOS_PGMAP is less than PAXOS_OSDMAP, so PGMonitor::update_from_paxos()
   // should have prepared the latest pgmap if any
   const auto& pgm = mon->pgmon()->pg_map;