Server IP : 185.86.78.101 / Your IP : 216.73.216.124 Web Server : Apache System : Linux 675867-vds-valikoshka1996.gmhost.pp.ua 5.4.0-150-generic #167-Ubuntu SMP Mon May 15 17:35:05 UTC 2023 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 : OFF Directory : /www/server/mysql/mysql-test/extra/rpl_tests/ |
Upload File : |
############################################################################# # Original Author: JBM # # Original Date: Aug/13/2005 Created from Bug 12335 # ############################################################################# # Begin clean up test section connection master; --disable_warnings DROP PROCEDURE IF EXISTS test.p1; DROP PROCEDURE IF EXISTS test.p2; DROP TABLE IF EXISTS test.t1; --enable_warnings # End of cleanup # Begin test section 1 eval CREATE TABLE test.t1(a INT,PRIMARY KEY(a))ENGINE=$engine_type; delimiter |; CREATE PROCEDURE test.p1() BEGIN INSERT INTO test.t1 VALUES (4); SELECT get_lock("test", 100); UPDATE test.t1 set a=a+4 WHERE a=4; END| CREATE PROCEDURE test.p2() BEGIN UPDATE test.t1 SET a=a+1; END| delimiter ;| SELECT get_lock("test", 200); connection master1; send CALL test.p1(); connection master; # Make sure that the call on master1 arrived at the get_lock. let $wait_condition= select count(*) = 1 from information_schema.processlist where state = 'User lock' and info = 'SELECT get_lock("test", 100)'; --source include/wait_condition_or_abort.inc CALL test.p2(); SELECT release_lock("test"); connection master1; # Reap CALL test.p1() to ensure that it has fully completed # before doing any selects on test.t1. --reap # Release lock acquired by it. SELECT release_lock("test"); connection master; SELECT * FROM test.t1; #show binlog events; --source include/sync_slave_sql_with_master.inc SELECT * FROM test.t1; connection master; DROP TABLE IF EXISTS test.t1; eval CREATE TABLE test.t1(a INT,PRIMARY KEY(a))ENGINE=$engine_type; CALL test.p2(); CALL test.p1(); SELECT release_lock("test"); SELECT * FROM test.t1; --source include/sync_slave_sql_with_master.inc SELECT * FROM test.t1; connection master; #show binlog events from 720; DROP PROCEDURE IF EXISTS test.p1; DROP PROCEDURE IF EXISTS test.p2; DROP TABLE IF EXISTS test.t1; --source include/sync_slave_sql_with_master.inc # End of 5.0 test case