File tree Expand file tree Collapse file tree 6 files changed +4
-15
lines changed Expand file tree Collapse file tree 6 files changed +4
-15
lines changed File renamed without changes.
Original file line number Diff line number Diff line change 4
4
# Please check all dependent tests after modifying it
5
5
#
6
6
# Usage:
7
- # --let $binlog_extra_length= X # optional, default 0
8
7
# --source extra/rpl_tests/multisource.inc
9
8
#
10
9
# By default, the script expects the length of the 2nd binary log to be
11
10
# $binlog_start_pos + length(Gtid_list event) + 2 x length(Binlog_checkpoint event)
12
11
# Some tests can have specific configuration which would change it,
13
- # e.g. for encrypted binlogs there will be additional event
14
- # Start_encryption of the length of 36.
15
- # binlog_extra_length should compensate for the difference.
16
-
17
- if (!$binlog_extra_length)
18
- {
19
- -- let $binlog_extra_length= 0
20
- }
21
12
22
13
#
23
14
# Test basic replication functionality
@@ -244,7 +235,7 @@ flush logs;
244
235
-- connection master1
245
236
purge binary logs to ' master-bin.000002' ;
246
237
# Additional events: 39 (Gtid_list) + 2 x 40 (Binlog_checkpoint) = 119
247
- let filesize= ` select $binlog_start_pos+119+$binlog_extra_length ` ;
238
+ let filesize= ` select $binlog_start_pos+119` ;
248
239
-- replace_result $filesize filesize
249
240
show binary logs;
250
241
insert into t1 (f1) values (' four' );
Original file line number Diff line number Diff line change 21
21
#
22
22
# #############################################################################
23
23
24
- let $binlog_start_pos = 249 ;
25
24
--disable_query_log
26
- SET @binlog_start_pos = 249 ;
25
+ set @binlog_start_pos = 249 + @@ encrypt_binlog * 36 ;
27
26
--enable_query_log
27
+ let $binlog_start_pos = `select @binlog_start_pos `;
28
28
Original file line number Diff line number Diff line change @@ -10,4 +10,4 @@ REPLACE INTO t1 VALUES (4);
10
10
DROP TABLE t1;
11
11
FLUSH LOGS;
12
12
Contain RELOAD DATABASE
13
- 0
13
+ 1
Original file line number Diff line number Diff line change 8
8
#####################################################################################
9
9
show binlog events in 'master-bin.000001' from <start_pos>;
10
10
Log_name Pos Event_type Server_id End_log_pos Info
11
- master-bin.000001 # Start_encryption 1 #
12
11
master-bin.000001 # Gtid_list 1 # []
13
12
master-bin.000001 # Binlog_checkpoint 1 # master-bin.000001
14
13
master-bin.000001 # Gtid 1 # GTID 0-1-1
Original file line number Diff line number Diff line change 1
- binlog_incident : MDEV-11319 - mysqlbinlog crash or failure
2
1
encrypted_master_lost_key : MDEV-11323 - unspecified behavior for IO thread
3
2
rpl_checksum_cache : MDEV-11486 - sporadic failure in IO thread
You can’t perform that action at this time.
0 commit comments