1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-07 00:04:31 +03:00

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

- correction
This commit is contained in:
unknown
2007-11-01 20:00:44 +01:00
parent de0780e00a
commit de3ff607e9
3 changed files with 8 additions and 4 deletions

View File

@@ -1,4 +1,5 @@
drop table if exists t1, t2, t3, t4; drop table if exists t1, t2, t3, t4;
flush status;
drop table if exists t1, t2, t3, t4; drop table if exists t1, t2, t3, t4;
flush status; flush status;
create table t1 (a int) engine=ndbcluster; create table t1 (a int) engine=ndbcluster;
@@ -132,11 +133,11 @@ master_epoch, count))
engine ndb; engine ndb;
show tables like '%$%'; show tables like '%$%';
Tables_in_test (%$%) Tables_in_test (%$%)
t1$EX t1$ex
use test; use test;
show tables like '%$%'; show tables like '%$%';
Tables_in_test (%$%) Tables_in_test (%$%)
t1$EX t1$ex
drop table `test`.`t1$EX`; drop table `test`.`t1$EX`;
show tables like '%$%'; show tables like '%$%';
Tables_in_test (%$%) Tables_in_test (%$%)

View File

@@ -4,11 +4,11 @@
--disable_warnings --disable_warnings
connection server2; connection server2;
drop table if exists t1, t2, t3, t4; drop table if exists t1, t2, t3, t4;
flush status;
connection server1; connection server1;
drop table if exists t1, t2, t3, t4; drop table if exists t1, t2, t3, t4;
--enable_warnings
flush status; flush status;
--enable_warnings
# Create test tables on server1 # Create test tables on server1
create table t1 (a int) engine=ndbcluster; 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 # check that table shows up ok on both servers
# before bugfix table would not show up on server2 # before bugfix table would not show up on server2
--replace_regex /EX/ex/
show tables like '%$%'; show tables like '%$%';
connection server2; connection server2;
use test; use test;
--replace_regex /EX/ex/
show tables like '%$%'; show tables like '%$%';
# check cleanup # check cleanup

View File

@@ -3716,6 +3716,7 @@ restart:
/* /*
Main NDB Injector loop Main NDB Injector loop
*/ */
if (ndb_binlog_running)
{ {
/* /*
Always insert a GAP event as we cannot know what has happened Always insert a GAP event as we cannot know what has happened