diff options
-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; |