403Webshell
Server IP : 172.67.216.182  /  Your IP : 172.71.124.185
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/t/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/server/mysql/src/mysql-test/suite/innodb/t/redo_log_during_checkpoint.test
--source include/have_innodb.inc
--source include/have_debug.inc
--source include/not_embedded.inc
--source include/not_valgrind.inc
--source include/big_test.inc
--source include/not_crashrep.inc
--source include/have_innodb_16k.inc

--disable_query_log

SET GLOBAL innodb_page_cleaner_disabled_debug = 1;
SET GLOBAL innodb_dict_stats_disabled_debug = 1;
SET GLOBAL innodb_master_thread_disabled_debug = 1;

set global innodb_log_checkpoint_now = 1;

DELIMITER |;
CREATE PROCEDURE create_table(IN SIZE INT)
BEGIN
	DECLARE i INT DEFAULT 0;
	set @t = "veryLongTableNameToCreateMLOG_FILE_NAMErecords";
	WHILE (i <= SIZE) DO
		set @s = CONCAT(@t, i);
		set @u = "";
		SELECT concat ("CREATE TABLE ",@s,"(a INT PRIMARY KEY)
				ENGINE=INNODB") into @u;
		PREPARE stmt1 from @u;
		EXECUTE stmt1;
		SET i = i + 1;
	END WHILE;
END|

CREATE PROCEDURE drop_table(IN SIZE INT)
BEGIN
	DECLARE i INT DEFAULT 0;
	set @t = "veryLongTableNameToCreateMLOG_FILE_NAMErecords";
	WHILE (i <= SIZE) DO
		set @s = CONCAT(@t, i);
		set @u = "";
		SELECT concat ("DROP TABLE ",@s,"") into @u;
		PREPARE stmt1 from @u;
		EXECUTE stmt1;
		SET i = i + 1;
	END WHILE;
END|
DELIMITER ;|

--disable_query_log
call create_table(1300);
--enable_query_log

# Write file to make mysql-test-run.pl start up the server again
--exec echo "restart: --debug=d,reduce_recv_parsing_buf" > $MYSQLTEST_VARDIR/tmp/mysqld.1.expect

set debug = "+d, increase_mtr_checkpoint_size";
set debug = "+d, crash_after_checkpoint";
--error 2013
set global innodb_log_checkpoint_now = 1;

--echo # Skip MLOG_FILE_NAME redo records during recovery
--enable_reconnect
--source include/wait_until_connected_again.inc
--disable_reconnect

--disable_query_log
call drop_table(1300);
--enable_query_log

SET GLOBAL innodb_page_cleaner_disabled_debug = 1;
SET GLOBAL innodb_dict_stats_disabled_debug = 1;
SET GLOBAL innodb_master_thread_disabled_debug = 1;

set global innodb_log_checkpoint_now = 1;

--echo # Commit the multi-rec mini transaction if mtr size
--echo # exceeds LOG_CHECKPOINT_FREE_PER_THREAD size during checkpoint.

--disable_query_log
call create_table(1300);
--enable_query_log

# Write file to make mysql-test-run.pl start up the server again
--exec echo "restart: " > $MYSQLTEST_VARDIR/tmp/mysqld.1.expect

set debug = "+d, crash_after_checkpoint";
--error 2013
set global innodb_log_checkpoint_now = 1;


--echo # Skip MLOG_FILE_NAME redo records during recovery
--enable_reconnect
--source include/wait_until_connected_again.inc
--disable_reconnect

--disable_query_log
call drop_table(1300);
--enable_query_log

drop procedure create_table;
drop procedure drop_table;
deallocate prepare stmt1;

Youez - 2016 - github.com/yon3zu
LinuXploit