Previously, we asserted that a log entry with a divergent
prior_version must be a clone. Consider the following
case:
6'11(6'2) m foo
7'12(6'3) m bar
7'13(7'12) m bar
If this is merged with:
6'11(6'2) m foo
8'12(6'4) m baz
we will hit the assert. The correct behavior is simply to remove
the object as in the clone case.
Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
}
}
} else if (oe.prior_version > info.log_tail) {
- assert(oe.soid.snap != CEPH_NOSNAP);
dout(20) << "merge_old_entry had " << oe
- << ", clone with no non-divergent log entries, "
+ << ", object with no non-divergent log entries, "
<< "deleting" << dendl;
remove_object_with_snap_hardlinks(t, oe.soid);
if (missing.is_missing(oe.soid))