During recovery, ignoring this would allow a bug in the osd to
erroneously mark the pg clean with incorrectly recovered objects.
Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
assert(0);
}
+ if (r == -ENOENT &&
+ (op == Transaction::OP_CLONERANGE ||
+ op == Transaction::OP_CLONE ||
+ op == Transaction::OP_CLONERANGE2)) {
+ // Halt before we incorrectly mark the pg clean
+ assert(0 == "ENOENT on clone suggests osd bug");
+ }
+
if (r == -ENOTEMPTY) {
assert(0 == "ENOTEMPTY suggests garbage data in osd data dir");
}