diff options
author | unknown <sasha@mysql.sashanet.com> | 2001-10-29 18:21:33 -0700 |
---|---|---|
committer | unknown <sasha@mysql.sashanet.com> | 2001-10-29 18:21:33 -0700 |
commit | 4af3c668c9ffe6ef2e04833ff49414038886ec24 (patch) | |
tree | 60d10a11c6ad1781eac82dfd4567da51440ea2d7 | |
parent | 0889d8dc84bc203a1536485a4c5c711b9f7de17f (diff) | |
download | mariadb-git-4af3c668c9ffe6ef2e04833ff49414038886ec24.tar.gz |
fixed bug with temporary tables replication if one does FLUSH LOGS
mysql-test/t/rpl000012.test:
test for replication of temp tables with FLUSH LOGS
-rw-r--r-- | mysql-test/t/rpl000012.test | 1 | ||||
-rw-r--r-- | sql/slave.cc | 1 |
2 files changed, 1 insertions, 1 deletions
diff --git a/mysql-test/t/rpl000012.test b/mysql-test/t/rpl000012.test index 01ff9ec8a37..9f8ba9a4f91 100644 --- a/mysql-test/t/rpl000012.test +++ b/mysql-test/t/rpl000012.test @@ -9,6 +9,7 @@ insert into t2 select * from t1; drop table if exists test.t3; create temporary table test.t3 (n int not null); alter table test.t3 add primary key(n); +flush logs; insert into t3 values (100); insert into t2 select * from t3; drop table if exists test.t3; diff --git a/sql/slave.cc b/sql/slave.cc index 15522d87a19..958ea0f1e18 100644 --- a/sql/slave.cc +++ b/sql/slave.cc @@ -1104,7 +1104,6 @@ static int exec_event(THD* thd, NET* net, MASTER_INFO* mi, int event_len) } case START_EVENT: - close_temporary_tables(thd); mi->inc_pos(event_len); flush_master_info(mi); delete ev; |