Commit 9952ee4f authored by tomas@whalegate.ndb.mysql.com's avatar tomas@whalegate.ndb.mysql.com
Browse files

Bug #31484 Cluster LOST_EVENTS entry not added to binlog on mysqld restart

- correction
parent 9320ec8d
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
drop table if exists t1, t2, t3, t4;
flush status;
drop table if exists t1, t2, t3, t4;
flush status;
create table t1 (a int) engine=ndbcluster;
@@ -132,11 +133,11 @@ master_epoch, count))
engine ndb;
show tables like '%$%';
Tables_in_test (%$%)
t1$EX
t1$ex
use test;
show tables like '%$%';
Tables_in_test (%$%)
t1$EX
t1$ex
drop table `test`.`t1$EX`;
show tables like '%$%';
Tables_in_test (%$%)
+4 −2
Original line number Diff line number Diff line
@@ -4,11 +4,11 @@
--disable_warnings
connection server2;
drop table if exists t1, t2, t3, t4;
flush status;
connection server1;
drop table if exists t1, t2, t3, t4;
--enable_warnings

flush status;
--enable_warnings

# Create test tables on server1
create table t1 (a int) engine=ndbcluster;
@@ -139,9 +139,11 @@ create table `test`.`t1$EX`

# check that table shows up ok on both servers
# before bugfix table would not show up on server2
--replace_regex /EX/ex/
show tables like '%$%';
connection server2;
use test;
--replace_regex /EX/ex/
show tables like '%$%';

# check cleanup
+1 −0
Original line number Diff line number Diff line
@@ -3716,6 +3716,7 @@ pthread_handler_t ndb_binlog_thread_func(void *arg)
  /*
    Main NDB Injector loop
  */
  if (ndb_binlog_running)
  {
    /*
      Always insert a GAP event as we cannot know what has happened