Server IP : 104.21.38.3 / Your IP : 162.158.108.125 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/parts/inc/ |
Upload File : |
CREATE USER test_2@localhost; --source include/not_embedded.inc --disable_result_log --disable_query_log --source suite/parts/inc/part_exch_tabs.inc --enable_result_log --enable_query_log # 8) Exchanges partition and table and back in 2 sessions with an insert. # Parallel INSERT and SELECT # LOCK behaviour when exchanging different partitons. --echo send --send ALTER TABLE tp EXCHANGE PARTITION p0 WITH TABLE t_10; --echo connect (test_2,localhost,test_2,,test,MASTER_MYPORT,MASTER_MYSOCK); connect (test_2,localhost,test_2,,test,$MASTER_MYPORT,$MASTER_MYSOCK); # Wait until exchange has been done. let $wait_condition= SELECT count(a)>0 FROM tp WHERE a=1; --source include/wait_condition.inc # Expect 1,3,5,9 in tp and 2,4,6,8 in t_10 --sorted_result SELECT * FROM t_10; --sorted_result SELECT * FROM tp WHERE a BETWEEN 0 AND 10; # Exchange back. INSERT INTO tp VALUES (7,"Seven"); # Expect 2,4,6,8 in tp --sorted_result SELECT * FROM tp WHERE a BETWEEN 0 AND 10; ALTER TABLE tp EXCHANGE PARTITION p0 WITH TABLE t_10; --echo connection default; connection default; --echo reap; reap; --sorted_result SELECT * FROM t_10; --sorted_result SELECT * FROM tp WHERE a BETWEEN 0 AND 10; --echo connection test_2; connection test_2; let $wait_condition= SELECT count(a)>0 FROM tp WHERE a=2; --source include/wait_condition.inc --sorted_result SELECT * FROM t_10; --sorted_result SELECT * FROM tp WHERE a BETWEEN 0 AND 10; --echo disconnect test_2; disconnect test_2; --echo connection default; connection default; --sorted_result SELECT * FROM t_10; --sorted_result SELECT * FROM tp WHERE a BETWEEN 0 AND 10; --source suite/parts/inc/part_exch_drop_tabs.inc DROP USER test_2@localhost;