diff options
author | Marko Mäkelä <marko.makela@mariadb.com> | 2020-11-10 17:21:16 +0200 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2020-11-11 11:15:11 +0200 |
commit | 9bc874a594edbc0e124131d0ff30b44f5fade52d (patch) | |
tree | 38fd225df9573771fe967174e07151721663b3cd /mysql-test/suite/innodb/t/innodb_blob_truncate.test | |
parent | c498250888ec126fddda2867d1239b2a7734482f (diff) | |
download | mariadb-git-9bc874a594edbc0e124131d0ff30b44f5fade52d.tar.gz |
MDEV-23497 Make ROW_FORMAT=COMPRESSED read-only by default
Let us introduce the parameter innodb_read_only_compressed
that is ON by default, making any ROW_FORMAT=COMPRESSED tables
read-only.
I developed the ROW_FORMAT=COMPRESSED format based on
Heikki Tuuri's rough design between 2005 and 2008. It might
have been a good idea back then, but no proper benchmarks were
ever run to validate the design or the implementation.
The format has been more or less obsolete for years.
It limits innodb_page_size to 16384 bytes (the default),
and instant ALTER TABLE is not supported.
This is the first step towards deprecating and removing
write support for ROW_FORMAT=COMPRESSED tables.
Diffstat (limited to 'mysql-test/suite/innodb/t/innodb_blob_truncate.test')
-rw-r--r-- | mysql-test/suite/innodb/t/innodb_blob_truncate.test | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/mysql-test/suite/innodb/t/innodb_blob_truncate.test b/mysql-test/suite/innodb/t/innodb_blob_truncate.test deleted file mode 100644 index 3e54ec80e2b..00000000000 --- a/mysql-test/suite/innodb/t/innodb_blob_truncate.test +++ /dev/null @@ -1,32 +0,0 @@ ---source include/have_innodb.inc ---source include/have_innodb_16k.inc - -create table t1(a blob) engine=innodb key_block_size=8; -delimiter //; -create function generate_blob() - returns varchar(20000) - begin - declare x varchar(20000) default ''; - declare i int default 500; - while i > 0 do - set x = concat(sha1(i), x); - set i = i - 1; - end while; - return x; -end // -delimiter ;// -insert into t1 select generate_blob(); -let $x = `select 20000 - length(a) from t1`; -if ($x) { - echo Blob is truncated by $x bytes.; - die It must have been 20000 bytes.; -} -truncate t1; -insert into t1 select generate_blob(); -let $x = `select 20000 - length(a) from t1`; -if ($x) { - echo Blob is truncated by $x bytes.; - die It must have been 20000 bytes.; -} -drop table t1; -drop function generate_blob; |