From f4f014937dc7b1cc5ac7927084e3af5f05a7c529 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Fri, 13 Apr 2018 10:26:48 -0500 Subject: [PATCH] mon/OSDMonitor: add FLAG_CREATING on upgrade if pools still creating Signed-off-by: Sage Weil --- src/mon/OSDMonitor.cc | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/mon/OSDMonitor.cc b/src/mon/OSDMonitor.cc index 21bde5ba43515..5e7a6003f2cb9 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; + } + } } } -- 2.39.5