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)
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;