3 # Save the current binlog position on the master, just like the
4 # built-in mysqltest command save_master_pos. The advantage of this
5 # script is that the saved position is available to the test script.
10 # [--let $use_gtids= 1]
11 # [--let $rpl_debug= 1]
12 # --source include/save_master_pos.inc
14 # Typically, you would use this script together with
15 # include/sync_io_with_master.inc
20 # By default, this script saves the binlog file and offset. If
21 # $use_gtids is set, this script saves the gtids.
24 # See include/rpl_init.inc
27 --let $include_filename= save_master_pos.inc
28 --source include/begin_include_file.inc
32 --let $_saved_gtids= `SELECT @@global.gtid_executed`
35 --echo save_master_pos saved gtid=
'$_saved_gtids'
40 --let $_saved_file= query_get_value(SHOW MASTER
STATUS, File, 1)
41 --let $_saved_pos= query_get_value(SHOW MASTER
STATUS, Position, 1)
44 --echo save_master_pos saved
file=
'$_saved_file', pos=
'$_saved_pos'
48 --let $include_filename= save_master_pos.inc
49 --source include/end_include_file.inc