1
0
mirror of https://github.com/MariaDB/server.git synced 2025-11-06 13:10:12 +03:00

multi_source.mariadb-dump_slave: don't change global settings

--- check-mysqld_1.result
+++ check-mysqld_1.reject
@@ -31,7 +31,7 @@
 Master_SSL_Cipher
 Master_SSL_Key
 Seconds_Behind_Master  NULL
-Master_SSL_Verify_Server_Cert  No
+Master_SSL_Verify_Server_Cert  Yes
 Last_IO_Errno  0
 Last_IO_Error
 Last_SQL_Errno 0
This commit is contained in:
Sergei Golubchik
2025-07-30 18:54:34 +02:00
parent c4ed889b74
commit 4e9c252bc4
2 changed files with 5 additions and 10 deletions

View File

@@ -1,11 +1,11 @@
connect active_master, 127.0.0.1, root, , , $SERVER_MYPORT_2;
connect inactive_master, 127.0.0.1, root, , , $SERVER_MYPORT_3;
connect slave, 127.0.0.1, root, , , $SERVER_MYPORT_1;
CHANGE MASTER TO
master_host='127.0.0.1', master_port=MYPORT_2, master_user='root';
CHANGE MASTER TO master_ssl_verify_server_cert=0,
master_host='127.0.0.1', master_port=$SERVER_MYPORT_2, master_user='root';
START SLAVE SQL_THREAD;
CHANGE MASTER 'inactive' TO
master_host='127.0.0.1', master_port=MYPORT_3;
master_host='127.0.0.1', master_port=$SERVER_MYPORT_3;
include/wait_for_slave_sql_to_start.inc
# Control State
Connection_name = ''

View File

@@ -10,17 +10,14 @@
--connect (inactive_master, 127.0.0.1, root, , , $SERVER_MYPORT_3)
--connect ( slave, 127.0.0.1, root, , , $SERVER_MYPORT_1)
--replace_result $SERVER_MYPORT_2 MYPORT_2
eval CHANGE MASTER TO
evalp CHANGE MASTER TO master_ssl_verify_server_cert=0,
master_host='127.0.0.1', master_port=$SERVER_MYPORT_2, master_user='root';
START SLAVE SQL_THREAD;
--replace_result $SERVER_MYPORT_3 MYPORT_3
eval CHANGE MASTER 'inactive' TO
evalp CHANGE MASTER 'inactive' TO
master_host='127.0.0.1', master_port=$SERVER_MYPORT_3;
# wait for the active default '' connection only
--source include/wait_for_slave_sql_to_start.inc
--echo # Control State
--source include/show_slave_status.inc
@@ -29,7 +26,6 @@ eval CHANGE MASTER 'inactive' TO
--replace_result $SERVER_MYPORT_2 MYPORT_2 $SERVER_MYPORT_3 MYPORT_3
--exec $MYSQL_DUMP --compact --dump-slave --include-master-host-port test
# The 'inactive' connection should remain stopped
# while the active '' connection should restart.
@@ -46,7 +42,6 @@ eval CHANGE MASTER 'inactive' TO
--source include/wait_for_slave_sql_to_start.inc
--source include/show_slave_status.inc
--echo # Cleanup
STOP SLAVE SQL_THREAD;
--disconnect active_master