* jbi_consumer minors
@@ -23,6 +23,17 @@ start: {
}
if (rc == IWKV_ERROR_NOTFOUND) {
rc = 0;
+ if (ctx->midx.idx) {
+ iwlog_error("Orphaned index entry."
+ "\n\tCollection db: %" PRIu32
+ "\n\tIndex db: %" PRIu32
+ "\n\tEntry id: %" PRId64, ctx->jbc->dbid, ctx->midx.idx->dbid, id);
+ } else {
+ iwlog_error("Orphaned index entry."
+ "\n\tCollection db: %" PRIu32
+ "\n\tEntry id: %" PRId64, ctx->jbc->dbid, id);
+ }
+ goto finish;
}
RCGO(rc, finish);
if (vsz > ctx->jblbufsz) {
