Server IP : 104.21.38.3 / Your IP : 172.71.152.34 Web Server : Apache System : Linux krdc-ubuntu-s-2vcpu-4gb-amd-blr1-01.localdomain 5.15.0-142-generic #152-Ubuntu SMP Mon May 19 10:54:31 UTC 2025 x86_64 User : www ( 1000) PHP Version : 7.4.33 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /www/server/mysql/src/mysql-test/suite/innodb_zip/t/ |
Upload File : |
-- source include/have_innodb.inc -- source include/have_innodb_16k.inc let $per_table=`select @@innodb_file_per_table`; -- let $query_i_s = SELECT page_size FROM information_schema.innodb_cmpmem WHERE pages_used > 0 set global innodb_file_per_table=on; create table t1(a text) engine=innodb key_block_size=8; -- disable_query_log # insert some rows so we are using compressed pages -- let $i = 10 while ($i) { insert into t1 values(repeat('abcdefghijklmnopqrstuvwxyz',100)); dec $i; } -- enable_query_log # we should be using some 8K pages -- eval $query_i_s drop table t1; # because of lazy eviction at drop table there should still be some # used 8K pages -- eval $query_i_s # create a non-compressed table and insert enough into it to evict # compressed pages create table t2(a text) engine=innodb; -- disable_query_log -- let $i = 500 while ($i) { insert into t2 values(repeat('abcdefghijklmnopqrstuvwxyz',1000)); dec $i; } -- enable_query_log # now there should be no 8K pages in the buffer pool -- eval $query_i_s drop table t2; # # restore environment to the state it was before this test execution # -- disable_query_log eval set global innodb_file_per_table=$per_table;