Commit 2b6498b0 authored by Jan Lindström's avatar Jan Lindström Committed by GitHub

Merge pull request #274 from grooverdan/10.2-MDEV-11075-innochecksum-bigendian-optimised

MDEV-11075: changing to algorithm innodb from crc32
parents 7ca1e2ab 850ed6e4
......@@ -5243,13 +5243,15 @@ page_zip_verify_checksum(
const uint32_t calculated = page_zip_calc_checksum(
data, size, SRV_CHECKSUM_ALGORITHM_CRC32);
const uint32_t calculated1 = page_zip_calc_checksum(
data, size, SRV_CHECKSUM_ALGORITHM_CRC32, true);
uint32_t calculated1;
if (stored == calculated
|| stored == calculated1
#ifdef UNIV_INNOCHECKSUM
|| ( encrypted == true && checksum == calculated)
#endif
|| stored == (calculated1 =
page_zip_calc_checksum(data, size, SRV_CHECKSUM_ALGORITHM_CRC32, true))
#ifdef UNIV_INNOCHECKSUM
|| ( encrypted == true && checksum == calculated1)
#endif
) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment