1# ==== Purpose ====
2#
3# Save the current binlog GTID position on the master, to be used
4# with include/sync_with_master_gtid.inc.
5#
6#
7# ==== Usage ====
8#
9# [--let $rpl_debug= 1]
10# --source include/save_master_gtid.inc
11#
12# Parameters:
13#   $rpl_debug
14#     See include/rpl_init.inc
15
16
17--let $include_filename= save_master_gtid.inc
18--source include/begin_include_file.inc
19
20--let $master_pos= `SELECT @@gtid_binlog_pos`
21
22if ($rpl_debug)
23{
24  --echo save_master_gtid saved master_pos='$master_pos'
25}
26
27--let $include_filename= save_master_gtid.inc
28--source include/end_include_file.inc
29