summaryrefslogtreecommitdiff
path: root/storage/innobase/fil/fil0pagecompress.cc
diff options
context:
space:
mode:
Diffstat (limited to 'storage/innobase/fil/fil0pagecompress.cc')
-rw-r--r--storage/innobase/fil/fil0pagecompress.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/storage/innobase/fil/fil0pagecompress.cc b/storage/innobase/fil/fil0pagecompress.cc
index 9d90c287ffc..57bb736d230 100644
--- a/storage/innobase/fil/fil0pagecompress.cc
+++ b/storage/innobase/fil/fil0pagecompress.cc
@@ -328,14 +328,14 @@ ulint fil_page_decompress(byte* tmp_buf, byte* buf)
case PAGE_ZLIB_ALGORITHM:
{
uLong len = srv_page_size;
- if (Z_OK != uncompress(tmp_buf, &len,
+ if (Z_OK == uncompress(tmp_buf, &len,
buf + header_len,
uLong(actual_size))
- && len != srv_page_size) {
- return 0;
+ && len == srv_page_size) {
+ break;
}
}
- break;
+ return 0;
#ifdef HAVE_LZ4
case PAGE_LZ4_ALGORITHM:
if (LZ4_decompress_safe(reinterpret_cast<const char*>(buf)