We also need to make sure we come back later when they are found.
Signed-off-by: Sage Weil <sage@newdream.net>
sobject_t head = soid;
head.snap = CEPH_NOSNAP;
+ bool unfound = missing_loc.count(soid);
+
dout(10) << "recover_primary "
<< soid << " " << item.need
+ << (unfound ? "":" (unfound)")
<< (missing.is_missing(soid) ? " (missing)":"")
<< (missing.is_missing(head) ? " (missing head)":"")
<< (pulling.count(soid) ? " (pulling)":"")
if (!pulling.count(soid)) {
if (pulling.count(head)) {
++skipped;
+ } else if (unfound) {
+ ++skipped;
} else {
// is this a clone operation that we can do locally?
if (latest && latest->op == Log::Entry::CLONE) {