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 */ +
|
2016-10-14 18:55:37 +08:00
|
|
|
# 57 /* 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
|
|
|
#
|
2016-10-14 18:55:37 +08:00
|
|
|
# With current number of events = 171,
|
2011-01-10 14:53:09 +01:00
|
|
|
#
|
2016-10-14 18:55:37 +08:00
|
|
|
# binlog_start_pos = 4 + 19 + 57 + 171 + 1 + 4 = 256.
|
2011-01-10 14:53:09 +01:00
|
|
|
#
|
|
|
|
##############################################################################
|
|
|
|
|
|
|
|
--disable_query_log
|
2016-12-29 13:23:18 +01:00
|
|
|
set @binlog_start_pos=256 + @@encrypt_binlog * (36 + (@@binlog_checksum != 'NONE') * 4);
|
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
|
|
|
|