Skip to content

Commit ce6b577

Browse files
committed
Merge 7.2->7.3
2 parents c45ffef + 3904a91 commit ce6b577

File tree

2 files changed

+14
-9
lines changed

2 files changed

+14
-9
lines changed

mysql-test/suite/ndb_binlog/r/ndb_binlog_flush_tables_with_read_lock.result

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,12 @@ we see a case where a committed ndb insert
119119
is not binlogged by the server.
120120
We do this work on Server2 as it doesn't have
121121
a read lock :)
122+
create table ndbt2 (a int primary key, b varchar(100)) engine=ndb;
122123
Outcome
123124
Server 1 has insert : 0
124125
Server 2 has insert : 1
125126
Now cleanup
126127
drop table ndbt1;
128+
drop table ndbt2;
127129
drop table myisamt3s1;
128130
drop table myisamt3s2;

mysql-test/suite/ndb_binlog/t/ndb_binlog_flush_tables_with_read_lock.test

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,8 @@ reset master;
120120
--echo We do this work on Server2 as it doesn't have
121121
--echo a read lock :)
122122

123+
create table ndbt2 (a int primary key, b varchar(100)) engine=ndb;
124+
123125
--disable_query_log
124126
--disable_result_log
125127

@@ -131,17 +133,17 @@ while ($not_proven)
131133
{
132134
--connection server1
133135
let $SERVER1_DATADIR= `select @@datadir;`;
134-
delete from test.ndbt1;
136+
delete from test.ndbt2;
135137
reset master;
136138

137139
--connection server2
138140
let $SERVER2_DATADIR= `select @@datadir;`;
139-
delete from test.ndbt1;
141+
delete from test.ndbt2;
140142
reset master;
141143

142144
--connection server1
143145

144-
insert into test.ndbt1 values (123,123);
146+
insert into test.ndbt2 values (123, "A most unlikely sequence if I may say so");
145147
flush tables with read lock;
146148

147149
--connection server2
@@ -151,14 +153,14 @@ while ($not_proven)
151153
create table raw_binlog_rows_server1 (txt varchar(1000));
152154
create table raw_binlog_rows_server2 (txt varchar(1000));
153155

154-
--exec $MYSQL_BINLOG --verbose $SERVER1_DATADIR/mysqld-bin.000001 > $MYSQLTEST_VARDIR/tmp/ndb_binlog_mysqlbinlog.sql
155-
--eval load data local infile '$MYSQLTEST_VARDIR/tmp/ndb_binlog_mysqlbinlog.sql' into table raw_binlog_rows_server1 columns terminated by '\n';
156-
--exec $MYSQL_BINLOG --verbose $SERVER2_DATADIR/mysqld-bin.000001 > $MYSQLTEST_VARDIR/tmp/ndb_binlog_mysqlbinlog.sql
157-
--eval load data local infile '$MYSQLTEST_VARDIR/tmp/ndb_binlog_mysqlbinlog.sql' into table raw_binlog_rows_server2 columns terminated by '\n';
156+
--exec $MYSQL_BINLOG --verbose $SERVER1_DATADIR/mysqld-bin.000001 > $MYSQLTEST_VARDIR/tmp/ndb_binlog_mysqlbinlog1.sql
157+
--eval load data local infile '$MYSQLTEST_VARDIR/tmp/ndb_binlog_mysqlbinlog1.sql' into table raw_binlog_rows_server1 columns terminated by '\n';
158+
--exec $MYSQL_BINLOG --verbose $SERVER2_DATADIR/mysqld-bin.000001 > $MYSQLTEST_VARDIR/tmp/ndb_binlog_mysqlbinlog2.sql
159+
--eval load data local infile '$MYSQLTEST_VARDIR/tmp/ndb_binlog_mysqlbinlog2.sql' into table raw_binlog_rows_server2 columns terminated by '\n';
158160

159161

160-
let $server1_has_insert = `select @s1_has_ins:=count(1) > 0 from raw_binlog_rows_server1 where txt like '%123%'`;
161-
let $server2_has_insert = `select @s2_has_ins:=count(1) > 0 from raw_binlog_rows_server2 where txt like '%123%'`;
162+
let $server1_has_insert = `select @s1_has_ins:=count(1) > 0 from raw_binlog_rows_server1 where txt like '%A most unlikely sequence if I may say so%'`;
163+
let $server2_has_insert = `select @s2_has_ins:=count(1) > 0 from raw_binlog_rows_server2 where txt like '%A most unlikely sequence if I may say so%'`;
162164

163165
# We succeed when server 1 does not have the insert, but server 2 does.
164166
select @proven:= (@s1_has_ins = 0 and @s2_has_ins != 0);
@@ -183,6 +185,7 @@ while ($not_proven)
183185
--echo Now cleanup
184186
--connection server1
185187
drop table ndbt1;
188+
drop table ndbt2;
186189
drop table myisamt3s1;
187190

188191
--connection server2

0 commit comments

Comments
 (0)