mirror of
https://github.com/MariaDB/server.git
synced 2025-02-10 15:35:34 +01:00
![Vladislav Vaintroub](/assets/img/avatar_default.png)
Remove workaround for MDEV-13941, it served for 5 years,and all affected pre-release 10.2 installation should have been already fixed in between. Apparently Innodb is using is_sparse parameter in os_file_set_size() inconsistently, and it passes is_sparse=false now during first file extension. With MDEV-13941 workaround in place, it would unsparse the file, which is makes compression not to work at all anymore.
7 lines
417 B
Text
7 lines
417 B
Text
--source include/have_innodb.inc
|
|
--source include/windows.inc
|
|
create table t_compressed(b longblob) engine=InnoDB page_compressed=1;
|
|
insert into t_compressed values(repeat(1,1000000));
|
|
# Check that compression worked, i.e allocated size (physical file size) < logical file size
|
|
select allocated_size < file_size from information_schema.innodb_sys_tablespaces where name='test/t_compressed';
|
|
drop table t_compressed;
|