Skip to content
Snippets Groups Projects
Commit 4803d29c authored by Daniel Salzman's avatar Daniel Salzman
Browse files

Merge branch 'journal_consistency_1270' into 'master'

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

See merge request !1274
parents 4401ec71 7f615223
No related branches found
No related tags found
1 merge request!1274journal: add consistency check to disclose broken journal...
Pipeline #78562 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