Server IP : 172.67.216.182 / Your IP : 162.158.189.106 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/extra/rpl_tests/ |
Upload File : |
# # The test file is invoked from rpl.rpl_xa_survive_disconnect_mixed_engines # # The test file is orginized as three sections: setup, run and cleanup. # The main logics is resided in the run section which generates # three types of XA transaction: two kinds of mixed and one on non-transactional # table. # # param $command one of three of: 'setup', 'run' or 'cleanup' # param $xa_terminate how to conclude: 'XA COMMIT' or 'XA ROLLBACK' # param $one_phase 'one_phase' can be opted with XA COMMIT above # param $xa_prepare_opt '1' or empty can be opted to test with and without XA PREPARE # param $xid arbitrary name for xa trx, defaults to 'xa_trx' # Note '' is merely to underline, not a part of the value. # if ($command == setup) { # Test randomizes the following variable's value: SET @@session.binlog_direct_non_transactional_updates := if(floor(rand()*10)%2,'ON','OFF'); CREATE TABLE t (a INT) ENGINE=innodb; CREATE TABLE tm (a INT) ENGINE=myisam; } if (!$xid) { --let $xid=xa_trx } if ($command == run) { # Non transactional table goes first --eval XA START '$xid' --disable_warnings INSERT INTO tm VALUES (1); INSERT INTO t VALUES (1); --enable_warnings --eval XA END '$xid' if ($xa_prepare_opt) { --eval XA PREPARE '$xid' } --eval $xa_terminate '$xid' $one_phase # Transactional table goes first --eval XA START '$xid' --disable_warnings INSERT INTO t VALUES (2); INSERT INTO tm VALUES (2); --enable_warnings --eval XA END '$xid' if ($xa_prepare_opt) { --eval XA PREPARE '$xid' } --eval $xa_terminate '$xid' $one_phase # The pure non-transactional table --eval XA START '$xid' --disable_warnings INSERT INTO tm VALUES (3); --enable_warnings --eval XA END '$xid' if ($xa_prepare_opt) { --eval XA PREPARE '$xid' } --eval $xa_terminate '$xid' $one_phase } if ($command == cleanup) { DROP TABLE t, tm; }