summaryrefslogtreecommitdiff
path: root/storage/innobase/os/os0file.cc
diff options
context:
space:
mode:
Diffstat (limited to 'storage/innobase/os/os0file.cc')
-rw-r--r--storage/innobase/os/os0file.cc8
1 files changed, 2 insertions, 6 deletions
diff --git a/storage/innobase/os/os0file.cc b/storage/innobase/os/os0file.cc
index 0093dd8e266..09340cca68d 100644
--- a/storage/innobase/os/os0file.cc
+++ b/storage/innobase/os/os0file.cc
@@ -4464,12 +4464,8 @@ found:
slot->page_compression = page_compression;
/* If the space is page compressed and this is write operation
- and either index compression is enabled or page is not a index
- page then we compress the page */
- if (message1 &&
- type == OS_FILE_WRITE &&
- page_compression &&
- (srv_page_compress_index_pages == true || !fil_page_is_index_page(slot->buf))) {
+ then we compress the page */
+ if (message1 && type == OS_FILE_WRITE && page_compression ) {
ulint real_len = len;
byte* tmp = NULL;