From: Sage Weil Date: Fri, 13 Apr 2018 15:26:48 +0000 (-0500) Subject: mon/OSDMonitor: add FLAG_CREATING on upgrade if pools still creating X-Git-Tag: v14.0.1~371^2~42 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f4f014937dc7b1cc5ac7927084e3af5f05a7c529;p=ceph.git mon/OSDMonitor: add FLAG_CREATING on upgrade if pools still creating Signed-off-by: Sage Weil --- diff --git a/src/mon/OSDMonitor.cc b/src/mon/OSDMonitor.cc index 21bde5ba4351..5e7a6003f2cb 100644 --- a/src/mon/OSDMonitor.cc +++ b/src/mon/OSDMonitor.cc @@ -1357,6 +1357,17 @@ void OSDMonitor::encode_pending(MonitorDBStore::TransactionRef t) if (osdmap.require_osd_release < CEPH_RELEASE_NAUTILUS && tmp.require_osd_release >= CEPH_RELEASE_NAUTILUS) { dout(10) << __func__ << " first nautilus+ epoch" << dendl; + // add creating flags? + for (auto& i : tmp.get_pools()) { + if (pending_creatings.still_creating_pool(i.first)) { + dout(10) << __func__ << " adding CREATING flag to pool " << i.first + << dendl; + if (pending_inc.new_pools.count(i.first) == 0) { + pending_inc.new_pools[i.first] = i.second; + } + pending_inc.new_pools[i.first].flags |= pg_pool_t::FLAG_CREATING; + } + } } }