MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
show_binlog_events2.inc
1 if (!$binlog_start)
2 {
3  # If $binlog_start is not set, we will set it as the second event's
4  # position. The first event(Description Event) is always ignored. For
5  # description event's length might be changed because of adding new events,
6  # 'SHOW BINLOG EVENTS LIMIT 1' is used to get the right value.
7  --let $binlog_start= query_get_value(SHOW BINLOG EVENTS LIMIT 1, End_log_pos, 1)
8 }
9 --replace_result $binlog_start <binlog_start>
10 --replace_column 2 # 5 #
11 --replace_regex /\/\* xid=.* \*\//\/* XID *\// /table_id: [0-9]+/table_id: #/ /SET @@SESSION.GTID_NEXT=.*$/SET @@SESSION.GTID_NEXT= 'GTID';/ /GROUPS: .*:(.*,.*)/GROUPS: GTID:(X,X)/
12 --eval show binlog events from $binlog_start