From 793c2f229754eabf52f9750570722a22e7a74d67 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Tue, 2 May 2017 01:10:54 +0800 Subject: [PATCH] mon/OSDMonitor: cleanup pending_created_pgs after done with it Signed-off-by: Kefu Chai --- src/mon/OSDMonitor.cc | 1 + 1 file changed, 1 insertion(+) 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; -- 2.47.3