Skip to content
Snippets Groups Projects
Commit 7f615223 authored by Libor Peltan's avatar Libor Peltan
Browse files

journal: add consistency check to disclose broken journal...

...by the bug fixed in 866c3515
parent dc91406b
No related branches found
No related tags found
1 merge request!1274journal: add consistency check to disclose broken journal...
Pipeline #78560 passed
......@@ -105,6 +105,11 @@ static bool make_data_available(journal_read_t *ctx)
if (!knot_lmdb_is_prefix_of(&ctx->key_prefix, &ctx->txn.cur_key)) {
return false;
}
if (ctx->next != journal_next_serial(&ctx->txn.cur_val)) {
// consistency check, see also MR !1270
ctx->txn.ret = KNOT_EMALF;
return false;
}
update_ctx_wire(ctx);
}
return true;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment