diff options
Diffstat (limited to 'storage/innobase/fil/fil0pagecompress.cc')
-rw-r--r-- | storage/innobase/fil/fil0pagecompress.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/storage/innobase/fil/fil0pagecompress.cc b/storage/innobase/fil/fil0pagecompress.cc index b800f12d6c7..d3cdacf5125 100644 --- a/storage/innobase/fil/fil0pagecompress.cc +++ b/storage/innobase/fil/fil0pagecompress.cc @@ -581,10 +581,9 @@ ulint fil_page_decompress_for_non_full_crc32( byte* tmp_buf, byte* buf) { - const unsigned ptype = mach_read_from_2(buf+FIL_PAGE_TYPE); ulint header_len; uint comp_algo; - switch (ptype) { + switch (fil_page_get_type(buf)) { case FIL_PAGE_PAGE_COMPRESSED_ENCRYPTED: header_len= FIL_PAGE_DATA + FIL_PAGE_ENCRYPT_COMP_METADATA_LEN; comp_algo = mach_read_from_2( |