diff options
author | Sergey Vojtovich <svoj@mariadb.org> | 2017-11-23 14:53:16 +0400 |
---|---|---|
committer | Sergey Vojtovich <svoj@mariadb.org> | 2017-11-23 15:55:51 +0400 |
commit | aaf5ee85f3c892b6a8657dc18d72c6858f418d3e (patch) | |
tree | af026fbcfbae796a6014e1f05043940a6a8be857 /storage/innobase/include/ut0crc32.h | |
parent | 62ce8ce75f96c1f04e603cb5114ad76f2a1ea7b1 (diff) | |
download | mariadb-git-aaf5ee85f3c892b6a8657dc18d72c6858f418d3e.tar.gz |
Removed HW acceleration for big endian checksum
Big endian checksum is needed to workaround 10+ years old bug, where checksum
was calculated incorrectly on big endian hardware. We can still checksum such
tablespaces using software implementation of CRC32.
Diffstat (limited to 'storage/innobase/include/ut0crc32.h')
-rw-r--r-- | storage/innobase/include/ut0crc32.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/storage/innobase/include/ut0crc32.h b/storage/innobase/include/ut0crc32.h index 509ac09497f..527a3e81533 100644 --- a/storage/innobase/include/ut0crc32.h +++ b/storage/innobase/include/ut0crc32.h @@ -47,9 +47,9 @@ typedef uint32_t (*ut_crc32_func_t)(const byte* ptr, ulint len); /** Pointer to CRC32 calculation function. */ extern ut_crc32_func_t ut_crc32; -/** Pointer to CRC32 calculation function, which uses big-endian byte order +/** CRC32 calculation function, which uses big-endian byte order when converting byte strings to integers internally. */ -extern ut_crc32_func_t ut_crc32_legacy_big_endian; +extern uint32_t ut_crc32_legacy_big_endian(const byte* buf, ulint len); extern const char* ut_crc32_implementation; |