1# ==== Purpose ====
2#
3# Save current filename and offset for the binary log in the mysqltest
4# variables $binlog_file and $binlog_position. The positions can be
5# used in any way you like. The variable names are deliberately chosen
6# so that this script can be used together with
7# include/assert_binlog_events.inc
8
9--let $include_filename= save_binlog_position.inc
10--source include/begin_include_file.inc
11
12--let $binlog_file= query_get_value(SHOW MASTER STATUS, File, 1)
13--let $binlog_position= query_get_value(SHOW MASTER STATUS, Position, 1)
14if ($rpl_debug)
15{
16  --echo saved binlog_file='$binlog_file' binlog_position='$binlog_position'
17}
18
19--let $include_filename= save_binlog_position.inc
20--source include/end_include_file.inc
21