From 115468c73f121653eec2efc030d5ba998d834e43 Mon Sep 17 00:00:00 2001 From: Joao Eduardo Luis Date: Wed, 24 Jul 2013 12:00:28 +0100 Subject: [PATCH] mon: OSDMonitor: fix a bug introduced on 97462a32 Fixes: #5737 Backport: cuttlefish Signed-off-by: Joao Eduardo Luis Reviewed-by: Sage Weil (cherry picked from commit 76cd7ac1c2094b34ad36bea89b2246fa90eb2f6d) --- src/mon/OSDMonitor.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mon/OSDMonitor.cc b/src/mon/OSDMonitor.cc index 20d162f3b0091..05cafcd8ff44f 100644 --- a/src/mon/OSDMonitor.cc +++ b/src/mon/OSDMonitor.cc @@ -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; -- 2.39.5