3 # Save the current position of the IO thread, just like
4 # save_master_pos.inc does for the master's position.
9 # [--let $use_gtids= 1]
10 # [--let $rpl_debug= 1]
11 # --source include/save_master_pos.inc
13 # Typically, you would use this script together with
14 # include/sync_io_with_master.inc
19 # By default, this script saves the binlog file and offset. If
20 # $use_gtids is set, this script saves the gtids.
23 # See include/rpl_init.inc
26 --let $include_filename= save_io_thread_pos.inc
27 --source include/begin_include_file.inc
31 --let $_saved_gtids= query_get_value(SHOW SLAVE
STATUS, Retrieved_Gtid_set, 1)
34 --echo save_io_thread_pos.inc saved gtid=
'$_saved_gtids'
39 --let $_saved_file= query_get_value(SHOW SLAVE
STATUS, Master_Log_File, 1)
40 --let $_saved_pos= query_get_value(SHOW SLAVE
STATUS, Read_Master_Log_Pos, 1)
44 --echo save_io_thread_pos.inc saved
file=
'$_saved_file', pos=
'$_saved_pos'
48 --let $include_filename= save_io_thread_pos.inc
49 --source include/end_include_file.inc