diff options
author | Thirunarayanan Balathandayuthapani <thiru@mariadb.com> | 2018-12-11 16:16:11 +0530 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2018-12-13 12:06:14 +0200 |
commit | 5f5e73f1fe4f34b806b94cf9443348ed6cf14c1e (patch) | |
tree | e377f7f5077db72b60e59fcb4e80ad0e475a37b0 /storage/xtradb/include/page0page.h | |
parent | ce1669af121f705f85c64daf8e40bf0eac9f7887 (diff) | |
download | mariadb-git-5f5e73f1fe4f34b806b94cf9443348ed6cf14c1e.tar.gz |
MDEV-17957 Make Innodb_checksum_algorithm stricter for strict_* values
Problem:
Innodb_checksum_algorithm checks for all checksum algorithm to
validate the page checksum even though the algorithm is specified as
strict_crc32, strict_innodb, strict_none.
Fix:
Remove the checks for all checksum algorithm to validate the page
checksum if the algo is specified as strict_* values.
Diffstat (limited to 'storage/xtradb/include/page0page.h')
-rw-r--r-- | storage/xtradb/include/page0page.h | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/storage/xtradb/include/page0page.h b/storage/xtradb/include/page0page.h index eefa0fa4c5b..26e71ff8081 100644 --- a/storage/xtradb/include/page0page.h +++ b/storage/xtradb/include/page0page.h @@ -1,6 +1,7 @@ /***************************************************************************** Copyright (c) 1994, 2016, Oracle and/or its affiliates. All Rights Reserved. +Copyright (c) 2013, 2018, MariaDB Corporation. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software @@ -1109,23 +1110,6 @@ const rec_t* page_find_rec_max_not_deleted( const page_t* page); -#endif /* #ifndef UNIV_INNOCHECKSUM */ - -/** Issue a warning when the checksum that is stored in the page is valid, -but different than the global setting innodb_checksum_algorithm. -@param[in] current_algo current checksum algorithm -@param[in] page_checksum page valid checksum -@param[in] space_id tablespace id -@param[in] page_no page number */ -void -page_warn_strict_checksum( - srv_checksum_algorithm_t curr_algo, - srv_checksum_algorithm_t page_checksum, - ulint space_id, - ulint page_no); - -#ifndef UNIV_INNOCHECKSUM - #ifdef UNIV_MATERIALIZE #undef UNIV_INLINE #define UNIV_INLINE UNIV_INLINE_ORIGINAL |