From: Joao Eduardo Luis Date: Fri, 8 Sep 2017 11:48:12 +0000 (+0100) Subject: mon/OSDMonitor: don't create pgs if pool was deleted X-Git-Tag: v13.0.1~971^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F17600%2Fhead;p=ceph.git mon/OSDMonitor: don't create pgs if pool was deleted A pool may be deleted while in the process of creating pgs. If that happens, we should not queue additional pgs from that pool to be created. Fixes: http://tracker.ceph.com/issues/21309 Signed-off-by: Joao Eduardo Luis --- diff --git a/src/mon/CreatingPGs.h b/src/mon/CreatingPGs.h index 4ba91575f3c..49935108c44 100644 --- a/src/mon/CreatingPGs.h +++ b/src/mon/CreatingPGs.h @@ -60,6 +60,7 @@ struct creating_pgs_t { auto last = pgs.lower_bound(pg_t{0, (uint64_t)removed_pool + 1}); pgs.erase(first, last); created_pools.erase(removed_pool); + queue.erase(removed_pool); return total - pgs.size(); } void encode(bufferlist& bl) const {