From 3e4697c8b24a5f0dbc4a96280c2ee79f9fb467d2 Mon Sep 17 00:00:00 2001 From: "sasha@mysql.sashanet.com" <> Date: Thu, 7 Dec 2000 11:40:22 -0700 Subject: rpl000001 sporadic failure mystery solved - the table was being opened twice :-) --- sql/slave.cc | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'sql/slave.cc') diff --git a/sql/slave.cc b/sql/slave.cc index bea48af02af..ece6341ca16 100644 --- a/sql/slave.cc +++ b/sql/slave.cc @@ -861,14 +861,7 @@ static int exec_event(THD* thd, NET* net, MASTER_INFO* mi, int event_len) tables.db = thd->db; tables.name = tables.real_name = (char*)lev->table_name; tables.lock_type = TL_WRITE; - - if (open_tables(thd, &tables)) - { - sql_print_error("Slave: error opening table %s ", - tables.name); - delete ev; - return 1; - } + // the table will be opened in mysql_load List fields; lev->set_fields(fields); -- cgit v1.2.1