From: Kefu Chai Date: Mon, 1 May 2017 17:10:54 +0000 (+0800) Subject: mon/OSDMonitor: cleanup pending_created_pgs after done with it X-Git-Tag: v12.0.3~130^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F14898%2Fhead;p=ceph.git mon/OSDMonitor: cleanup pending_created_pgs after done with it Signed-off-by: Kefu Chai --- diff --git a/src/mon/OSDMonitor.cc b/src/mon/OSDMonitor.cc index a258d502c9fb..0271f1ba14e2 100644 --- a/src/mon/OSDMonitor.cc +++ b/src/mon/OSDMonitor.cc @@ -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;