Server IP : 172.67.216.182 / Your IP : 162.158.170.16 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/rpl/t/ |
Upload File : |
--source include/not_group_replication_plugin.inc source include/master-slave.inc; CALL mtr.add_suppression("Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT"); create table t1(n int); # Use of get_lock gives a warning for unsafeness if binlog_format=statement --disable_warnings insert into t1 values(get_lock("lock",2)); --enable_warnings dirty_close master; connection master1; select get_lock("lock",2); select release_lock("lock"); #ignore disable_query_log; let $1=2000; while ($1) { do get_lock("lock",2); do release_lock("lock"); dec $1; } enable_query_log; --source include/sync_slave_sql_with_master.inc select get_lock("lock",3); select * from t1; # There is no point in testing REPLICATIION of the IS_*_LOCK # functions; slave does not run with the same concurrency context as # master (generally in slave we can't know that on master this lock # was already held by another connection and so that the the # get_lock() we're replicating timed out on master hence returned 0, # or that the is_free_lock() we're playing returned 0 etc. # But here all we do is test these functions outside of replication. select is_free_lock("lock"), is_used_lock("lock") = connection_id(); explain extended select is_free_lock("lock"), is_used_lock("lock"); # Check lock functions select is_free_lock("lock2"); connection master1; drop table t1; --source include/sync_slave_sql_with_master.inc --source include/rpl_end.inc # End of 4.1 tests