When we take the clone branch, we update the missing map. This invalidates
our current iterator, which can cause badness. Instead, increment the
iterator near the top of the loop so we don't have to worry about it.
Signed-off-by: Sage Weil <sage@newdream.net>
soid = p->second;
}
Missing::item& item = missing.missing[p->second];
+ p++;
sobject_t head = soid;
head.snap = CEPH_NOSNAP;
}
}
- p++;
-
// only advance last_requested if we haven't skipped anything
if (!skipped)
log.last_requested = v;