2011-01-10 14:53:09 +01:00
|
|
|
##############################################################################
|
|
|
|
#
|
|
|
|
# binlog_start_pos is the postion of the the first event in the binary log
|
|
|
|
# which follows the Format description event. Intended to reduce test suite
|
|
|
|
# dependance on the Format description event length changes (e.g. in case
|
|
|
|
# of adding new events). Evaluated as:
|
|
|
|
#
|
|
|
|
# binlog_start_pos = 4 /* binlog header */ +
|
|
|
|
# (Format_description_log_event length)
|
|
|
|
#
|
|
|
|
# Format_description_log_event length =
|
|
|
|
# 19 /* event common header */ +
|
2015-09-02 09:58:08 +02:00
|
|
|
# 58 /* misc stuff in the Format description header */ +
|
2011-05-03 14:01:11 +02:00
|
|
|
# number of events +
|
|
|
|
# 1 /* Checksum algorithm */ +
|
|
|
|
# 4 /* CRC32 length */
|
2011-01-10 14:53:09 +01:00
|
|
|
#
|
2015-09-02 09:58:08 +02:00
|
|
|
# With current number of events = 164,
|
2011-01-10 14:53:09 +01:00
|
|
|
#
|
2015-09-02 09:58:08 +02:00
|
|
|
# binlog_start_pos = 4 + 19 + 57 + 163 + 1 + 4 = 249.
|
2011-01-10 14:53:09 +01:00
|
|
|
#
|
|
|
|
##############################################################################
|
|
|
|
|
|
|
|
--disable_query_log
|
2016-12-05 22:29:25 +01:00
|
|
|
set @binlog_start_pos=249 + @@encrypt_binlog * 36;
|
2011-01-10 14:53:09 +01:00
|
|
|
--enable_query_log
|
2016-12-05 22:29:25 +01:00
|
|
|
let $binlog_start_pos=`select @binlog_start_pos`;
|
2011-01-10 14:53:09 +01:00
|
|
|
|