From 76cd7ac1c2094b34ad36bea89b2246fa90eb2f6d 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 --- 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 b02a3651252..f2e51e40685 100644 --- a/src/mon/OSDMonitor.cc +++ b/src/mon/OSDMonitor.cc @@ -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;