]> git-server-git.apps.pok.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 15:58:26 +0000 (08:58 -0700)
Fixes: #5737
Backport: cuttlefish

Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
src/mon/OSDMonitor.cc

index b02a365125278df90317e9302ab483dd8cbb8337..f2e51e406851274eb1eb84cdd3e9b5b65555b2ba 100644 (file)
@@ -141,7 +141,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;