summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoao Eduardo Luis <joao.luis@inktank.com>2013-07-24 12:00:28 +0100
committerSage Weil <sage@inktank.com>2013-07-24 09:12:46 -0700
commit115468c73f121653eec2efc030d5ba998d834e43 (patch)
tree624e9d366f7dbb521c8496ce8ed783283cc8f547
parent938a639e2cb6abd22c2c588e619c1aae32c6521f (diff)
downloadceph-115468c73f121653eec2efc030d5ba998d834e43.tar.gz
mon: OSDMonitor: fix a bug introduced on 97462a32
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)
-rw-r--r--src/mon/OSDMonitor.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mon/OSDMonitor.cc b/src/mon/OSDMonitor.cc
index 20d162f3b00..05cafcd8ff4 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;