]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: OSDMonitor: fix a bug introduced on 97462a32
authorJoao Eduardo Luis <joao.luis@inktank.com>
Wed, 24 Jul 2013 11:00:28 +0000 (12:00 +0100)
committerSage Weil <sage@inktank.com>
Wed, 24 Jul 2013 16:12:46 +0000 (09:12 -0700)
Fixes: #5737
Backport: cuttlefish

Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
(cherry picked from commit 76cd7ac1c2094b34ad36bea89b2246fa90eb2f6d)

src/mon/OSDMonitor.cc

index 20d162f3b009178e26ff89589964f10961f614a8..05cafcd8ff44f635bc7708ec77b39cd7c7351909 100644 (file)
@@ -142,7 +142,7 @@ void OSDMonitor::update_from_paxos(bool *need_bootstrap)
 
     latest_full = 0;
     for (version_t v = lc; v >= fc; v--) {
-      string full_key = "full_" + stringify(latest_full);
+      string full_key = "full_" + stringify(v);
       if (mon->store->exists(get_service_name(), full_key)) {
         dout(10) << __func__ << " found latest full map v " << v << dendl;
         latest_full = v;