summaryrefslogtreecommitdiffstats
path: root/mysql-test/suite/mariabackup/rpl_slave_info.result
blob: 2b9b6223401d6823a5798e67257ff03af1b9ebd5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
include/master-slave.inc
[connection master]
connection slave;
###############
# If Using_Gtid != 'No', backup gtid_slave_pos
########################
include/stop_slave.inc
change master to master_use_gtid=slave_pos;
include/start_slave.inc
connection master;
CREATE TABLE t(i INT);
connection slave;
"using_gtid: Slave_Pos"
FOUND 1 /gtid_slave_pos/ in mariadb_backup_slave_info
NOT FOUND /MASTER_LOG_FILE/ in mariadb_backup_slave_info
lineno	line
1	SET GLOBAL gtid_slave_pos = '<NUM-NUM-NUM>';
2	CHANGE MASTER TO master_use_gtid = slave_pos;
###############
# If Using_Gtid != 'No' and !gtid_slave_pos, backup master position
########################
include/stop_slave.inc
SET GLOBAL gtid_slave_pos="";
NOT FOUND /gtid_slave_pos/ in mariadb_backup_slave_info
FOUND 1 /MASTER_LOG_FILE/ in mariadb_backup_slave_info
lineno	line
1	CHANGE MASTER TO MASTER_LOG_FILE='master-bin.000001', MASTER_LOG_POS=<NUM>;
###############
# If Using_Gtid == 'No', backup Exec_Master_Log_Pos
########################
change master to master_use_gtid=no;
include/start_slave.inc
connection master;
INSERT INTO t VALUES(1);
connection slave;
"using_gtid: No"
NOT FOUND /gtid_slave_pos/ in mariadb_backup_slave_info
FOUND 1 /MASTER_LOG_FILE/ in mariadb_backup_slave_info
lineno	line
1	CHANGE MASTER TO MASTER_LOG_FILE='master-bin.000001', MASTER_LOG_POS=<NUM>;
connection master;
DROP TABLE t;
connection slave;
include/rpl_end.inc