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 $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
18
# See include/rpl_init.inc
21
--let $include_filename= save_master_pos.inc
22
--source include/begin_include_file.inc
24
let $_master_file= query_get_value("SHOW MASTER STATUS", File, 1);
25
let $_master_pos= query_get_value("SHOW MASTER STATUS", Position, 1);
29
--echo save_master_pos saved file='$_master_file', pos='$_master_pos'
32
--let $include_filename= save_master_pos.inc
33
--source include/end_include_file.inc