diff options
Diffstat (limited to 'storage/xtradb/fil/fil0pagecompress.cc')
-rw-r--r-- | storage/xtradb/fil/fil0pagecompress.cc | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/storage/xtradb/fil/fil0pagecompress.cc b/storage/xtradb/fil/fil0pagecompress.cc index e508d4733db..e544981fa2e 100644 --- a/storage/xtradb/fil/fil0pagecompress.cc +++ b/storage/xtradb/fil/fil0pagecompress.cc @@ -355,11 +355,16 @@ fil_compress_page( write_size+=header_len; + if (block_size <= 0) { + block_size = 512; + } + + ut_ad(write_size > 0 && block_size > 0); + /* Actual write needs to be alligned on block size */ if (write_size % block_size) { - size_t tmp = write_size; #ifdef UNIV_DEBUG - ut_a(block_size > 0); + size_t tmp = write_size; #endif write_size = (size_t)ut_uint64_align_up((ib_uint64_t)write_size, block_size); #ifdef UNIV_DEBUG |