Skip to content

Commit

Permalink
test suite for compressed binlog event
Browse files Browse the repository at this point in the history
  • Loading branch information
vinchen authored and knielsen committed Oct 19, 2016
1 parent d4b2c9b commit e1c5028
Show file tree
Hide file tree
Showing 14 changed files with 937 additions and 85 deletions.
10 changes: 5 additions & 5 deletions mysql-test/include/binlog_start_pos.inc
Expand Up @@ -10,19 +10,19 @@
#
# Format_description_log_event length =
# 19 /* event common header */ +
# 58 /* misc stuff in the Format description header */ +
# 57 /* misc stuff in the Format description header */ +
# number of events +
# 1 /* Checksum algorithm */ +
# 4 /* CRC32 length */
#
# With current number of events = 164,
# With current number of events = 171,
#
# binlog_start_pos = 4 + 19 + 57 + 163 + 1 + 4 = 249.
# binlog_start_pos = 4 + 19 + 57 + 171 + 1 + 4 = 256.
#
##############################################################################

let $binlog_start_pos=249;
let $binlog_start_pos=256;
--disable_query_log
SET @binlog_start_pos=249;
SET @binlog_start_pos=256;
--enable_query_log

2 changes: 1 addition & 1 deletion mysql-test/include/show_binlog_events2.inc
Expand Up @@ -4,7 +4,7 @@ if ($binlog_start)
}
if (!$binlog_start)
{
--let $_binlog_start=249
--let $_binlog_start=256
}
if ($binlog_file)
{
Expand Down
4 changes: 4 additions & 0 deletions mysql-test/r/flush2.result
Expand Up @@ -4,6 +4,8 @@ show variables like 'log_bin%';
Variable_name Value
log_bin OFF
log_bin_basename
log_bin_compress OFF
log_bin_compress_min_len 256
log_bin_index
log_bin_trust_function_creators ON
show variables like 'relay_log%';
Expand All @@ -20,6 +22,8 @@ show variables like 'log_bin%';
Variable_name Value
log_bin OFF
log_bin_basename
log_bin_compress OFF
log_bin_compress_min_len 256
log_bin_index
log_bin_trust_function_creators ON
show variables like 'relay_log%';
Expand Down

0 comments on commit e1c5028

Please sign in to comment.