Server IP : 104.21.38.3 / Your IP : 162.158.107.18 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/r/ |
Upload File : |
# # Use default connection to master. # RESET MASTER; SET @old_binlog_order_commits = @@global.binlog_order_commits; SET GLOBAL binlog_order_commits = 0; # # Create table. Use GTID 1 # CREATE TABLE t1 (id INT PRIMARY KEY); # # Make another connection. Set to stop at after dec_prep_xids. # SET DEBUG_SYNC = "after_dec_prep_xids SIGNAL signal.after_dec_prep_xids_reached WAIT_FOR signal.after_dec_prep_xids_unblock"; # # Use GTID 2. Stop after dec_prep_xids. If commit is executed before # dec_prep_xids then GTID 2 will be used out. # INSERT INTO t1 VALUES(1); # # Use default connection to master. # # # Wait until after_dec_prep_xids is reached # SET DEBUG_SYNC = "now WAIT_FOR signal.after_dec_prep_xids_reached"; # # Use GTID 3. Force to rotate to log 'master-bin.000002' # All GTID 1-3 should be used in 'master-bin.000001' # SET SESSION debug = "+d,force_rotate"; INSERT INTO t1 VALUES(2); SET SESSION debug = "-d,force_rotate"; # # Add transaction in new binary log 'master-bin.000002' # GTID 4 should be used. # SET DEBUG_SYNC = 'now SIGNAL signal.after_dec_prep_xids_unblock'; INSERT INTO t1 VALUES(3); # # Check all GTID 1-3 are used by looking at 'master-bin.000002' # include/assert.inc [Previous_gtids should use UUID:1-3 GTID] # # Cleanup # DROP TABLE t1; SET GLOBAL binlog_order_commits = @old_binlog_order_commits;