Skip to content

Commit

Permalink
IGNITE-17852 Fix incorrect for compression CRC assert (apache#10298)
Browse files Browse the repository at this point in the history
  • Loading branch information
nizhikov authored Oct 10, 2022
1 parent 607839c commit 6cb6dd2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -734,7 +734,7 @@ private void reinit(FileIO fileIO) throws IOException {
}

// Check whether crc was calculated somewhere above the stack if it is forcibly skipped.
assert skipCrc || PageIO.getCrc(pageBuf) != 0 || calcCrc32(pageBuf, pageSize) == 0 :
assert skipCrc || PageIO.getCrc(pageBuf) != 0 || calcCrc32(pageBuf, getCrcSize(pageId, pageBuf)) == 0 :
"CRC hasn't been calculated, crc=0";

assert pageBuf.position() == 0 : pageBuf.position();
Expand Down

0 comments on commit 6cb6dd2

Please sign in to comment.