summaryrefslogtreecommitdiff
path: root/storage
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2022-02-16 17:03:02 +0200
committerMarko Mäkelä <marko.makela@mariadb.com>2022-02-16 17:03:02 +0200
commitcf574cf53b168992b911d5fc32c590a6ee03a56a (patch)
tree1f31d77c8fb4c182b67c609f0a9c6818dd12eccc /storage
parentcdf19cd618ed23fbf7051130b2a6b587c4a4316b (diff)
downloadmariadb-git-cf574cf53b168992b911d5fc32c590a6ee03a56a.tar.gz
MDEV-27634 innodb_zip tests failing on s390x
Some GNU/Linux distributions ship a zlib that is modified to use the s390x DFLTCC instruction. That modification would essentially redefine compressBound(sourceLen) as (sourceLen * 16 + 2308) / 8 + 6. Let us relax the tests for InnoDB ROW_FORMAT=COMPRESSED to cope with such a weaker compression guarantee. create_table_info_t::row_size_is_acceptable(): Remove a bogus debug-only assertion that would fail to hold for the test innodb_zip.bug36169. The function page_zip_empty_size() may indeed return 0.
Diffstat (limited to 'storage')
-rw-r--r--storage/innobase/handler/ha_innodb.cc1
1 files changed, 0 insertions, 1 deletions
diff --git a/storage/innobase/handler/ha_innodb.cc b/storage/innobase/handler/ha_innodb.cc
index 889aee0d47e..a36ed4ddbcd 100644
--- a/storage/innobase/handler/ha_innodb.cc
+++ b/storage/innobase/handler/ha_innodb.cc
@@ -12983,7 +12983,6 @@ bool create_table_info_t::row_size_is_acceptable(
if (info.row_is_too_big())
{
ut_ad(info.get_overrun_size() != 0);
- ut_ad(info.max_leaf_size != 0);
const size_t idx= info.get_first_overrun_field_index();
const dict_field_t *field= dict_index_get_nth_field(&index, idx);