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>
This commit is contained in:
Joao Eduardo Luis 2013-07-24 12:00:28 +01:00 committed by Sage Weil
parent 1cdb3ecffc
commit 76cd7ac1c2

View File

@ -141,7 +141,7 @@ void OSDMonitor::update_from_paxos(bool *need_bootstrap)
latest_full = 0; latest_full = 0;
for (version_t v = lc; v >= fc; v--) { 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)) { if (mon->store->exists(get_service_name(), full_key)) {
dout(10) << __func__ << " found latest full map v " << v << dendl; dout(10) << __func__ << " found latest full map v " << v << dendl;
latest_full = v; latest_full = v;