]> git.proxmox.com Git - ceph.git/commitdiff
drop cherry-picked upgrade commit
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Tue, 23 May 2017 12:12:40 +0000 (14:12 +0200)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Fri, 2 Jun 2017 09:27:48 +0000 (11:27 +0200)
it is contained in 12.0.3

patches/0006-mon-OSDMonitor-tolerate-upgrade-from-post-kraken-dev.patch [deleted file]

diff --git a/patches/0006-mon-OSDMonitor-tolerate-upgrade-from-post-kraken-dev.patch b/patches/0006-mon-OSDMonitor-tolerate-upgrade-from-post-kraken-dev.patch
deleted file mode 100644 (file)
index 7019e79..0000000
+++ /dev/null
@@ -1,58 +0,0 @@
-From 3e90e5f70f5d43c28eee66a533f3d06f13815f6e Mon Sep 17 00:00:00 2001
-From: Sage Weil <sage@redhat.com>
-Date: Mon, 10 Apr 2017 17:36:37 -0400
-Subject: [PATCH 6/6] mon/OSDMonitor: tolerate upgrade from post-kraken dev
- cluster
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-If the 'creating' pgs key is missing, move on without crashing.
-
-Signed-off-by: Sage Weil <sage@redhat.com>
-Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
----
- src/mon/OSDMonitor.cc | 20 +++++++++++++-------
- 1 file changed, 13 insertions(+), 7 deletions(-)
-
-diff --git a/src/mon/OSDMonitor.cc b/src/mon/OSDMonitor.cc
-index 554ba3a..46fea3e 100644
---- a/src/mon/OSDMonitor.cc
-+++ b/src/mon/OSDMonitor.cc
-@@ -251,12 +251,17 @@ void OSDMonitor::update_from_paxos(bool *need_bootstrap)
-       ceph::features::mon::FEATURE_LUMINOUS)) {
-     bufferlist bl;
-     mon->store->get(OSD_PG_CREATING_PREFIX, "creating", bl);
--    auto p = bl.begin();
--    std::lock_guard<std::mutex> l(creating_pgs_lock);
--    creating_pgs.decode(p);
--    dout(7) << __func__ << " loading creating_pgs last_scan_epoch "
--          << creating_pgs.last_scan_epoch
--          << " with " << creating_pgs.pgs.size() << " pgs" << dendl;
-+    if (bl.length()) {
-+      auto p = bl.begin();
-+      std::lock_guard<std::mutex> l(creating_pgs_lock);
-+      creating_pgs.decode(p);
-+      dout(7) << __func__ << " loading creating_pgs last_scan_epoch "
-+            << creating_pgs.last_scan_epoch
-+            << " with " << creating_pgs.pgs.size() << " pgs" << dendl;
-+    } else {
-+      dout(1) << __func__ << " missing creating pgs; upgrade from post-kraken?"
-+            << dendl;
-+    }
-   }
-   // walk through incrementals
-@@ -268,7 +273,8 @@ void OSDMonitor::update_from_paxos(bool *need_bootstrap)
-     assert(err == 0);
-     assert(inc_bl.length());
--    dout(7) << "update_from_paxos  applying incremental " << osdmap.epoch+1 << dendl;
-+    dout(7) << "update_from_paxos  applying incremental " << osdmap.epoch+1
-+          << dendl;
-     OSDMap::Incremental inc(inc_bl);
-     err = osdmap.apply_incremental(inc);
-     assert(err == 0);
--- 
-2.1.4
-