403Webshell
Server IP : 104.21.38.3  /  Your IP : 172.68.164.121
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 :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/server/mysql/src/mysql-test/suite/rpl/t/rpl_gtid_mts_replicate_same_server_id.test
# ==== Purpose ====
#
# Verify that --replicate-same-server-id works with GTID_MODE=ON and
# MTS.
#
# ==== Implementation ====
#
# The main implementation is in the .opt file: it sets up master and
# slave with MTS enabled and with replicate-same-server-id enabled.
# The test case just checks that it works to replicate a couple of
# simple statements in this scenario. This test does not actually use
# the same server_id on master and slave.
#
# ==== References ====
#
# BUG#18967791 SLAVE THREAD FAILS WITH MTS + GTID + REPLICATE_SAME_SERVER_ID
#   Prior to this bug, the MTS slave would fail when reading
#   Previous_gtids_log_event.  This only happened when
#   replicate-same-server-id was enabled because any
#   Previous_gtids_log_event in the relay log is generated by the
#   slave and has the slave's server_id.

--source include/not_group_replication_plugin.inc
--source include/have_gtid.inc
--let $use_gtids= 0
--source include/master-slave.inc

CREATE TABLE t1 (a INT);
INSERT INTO t1 VALUES (1);
--source include/sync_slave_sql_with_master.inc

--let $assert_cond= a = 1 FROM t1
--let $assert_text= The two statements should have been replicated, so that t1 contains value 1.
--source include/assert.inc

--connection master
DROP TABLE t1;

--source include/rpl_end.inc

Youez - 2016 - github.com/yon3zu
LinuXploit