Fix journal data checksum verification on start

cached-reads
Vitaliy Filippov 2023-06-11 02:12:12 +03:00
parent 4c3370220b
commit dc6e88e2ca
1 changed files with 5 additions and 0 deletions

View File

@ -847,6 +847,11 @@ int blockstore_init_journal::handle_journal_part(void *buf, uint64_t done_pos, u
: (pos < end
? bs->dsk.csum_block_size
: (je->small_write.offset + je->small_write.len)%bs->dsk.csum_block_size));
if (pos > start && pos == end && block_left == 0)
{
// full last block
block_left = bs->dsk.csum_block_size;
}
uint32_t block_crc32 = 0;
while (block_left > 0)
{