8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-22 20:03:02 +01:00

Add precedence relationship between a big record's head and its tail to avoid corruption in case server crashes

This commit is contained in:
Roman Simakov 2021-12-10 22:03:38 +03:00
parent 3961213819
commit 3c842d4bd3

View File

@ -3774,6 +3774,8 @@ static void store_big_record(thread_db* tdbb,
// What's left fits on a page. Luckily, we don't have to store it ourselves.
stack.push(prior);
// rpb is already converted to UTC
const Compressor dcc(*tdbb->getDefaultPool(), in - rpb->rpb_address, rpb->rpb_address);
size = (ULONG) dcc.getPackedLength();