From: Sage Weil Date: Fri, 9 Dec 2016 02:28:45 +0000 (-0600) Subject: mon/OSDMonitor: remove obsolete pg[p]_num vs creating pgs restriction X-Git-Tag: v12.0.0~338^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=cf39776a2d89bd64b1c269af99a6c7f132e9e5f7;p=ceph.git mon/OSDMonitor: remove obsolete pg[p]_num vs creating pgs restriction This dates back to the original split code circa 78ddc62b356cd0f26a9ac666b0f58ac0d0da8798 (v0.2) when the creating pg code was a special case. These days we rely on the generic peering code, which has no issues with splits. Signed-off-by: Sage Weil --- diff --git a/src/mon/OSDMonitor.cc b/src/mon/OSDMonitor.cc index f0d283a0fce..fb3157dd8f7 100644 --- a/src/mon/OSDMonitor.cc +++ b/src/mon/OSDMonitor.cc @@ -5173,14 +5173,6 @@ int OSDMonitor::prepare_command_pool_set(map &cmdmap, << ')'; return -E2BIG; } - for(set::iterator i = mon->pgmon()->pg_map.creating_pgs.begin(); - i != mon->pgmon()->pg_map.creating_pgs.end(); - ++i) { - if (i->m_pool == static_cast(pool)) { - ss << "currently creating pgs, wait"; - return -EBUSY; - } - } p.set_pg_num(n); } else if (var == "pgp_num") { if (p.has_flag(pg_pool_t::FLAG_NOPGCHANGE)) { @@ -5199,14 +5191,6 @@ int OSDMonitor::prepare_command_pool_set(map &cmdmap, ss << "specified pgp_num " << n << " > pg_num " << p.get_pg_num(); return -EINVAL; } - for(set::iterator i = mon->pgmon()->pg_map.creating_pgs.begin(); - i != mon->pgmon()->pg_map.creating_pgs.end(); - ++i) { - if (i->m_pool == static_cast(pool)) { - ss << "currently creating pgs, wait"; - return -EBUSY; - } - } p.set_pgp_num(n); } else if (var == "crush_ruleset") { if (interr.length()) {