Commit ac9de478 authored by sasha@mysql.sashanet.com's avatar sasha@mysql.sashanet.com
Browse files

fix for the fatal bug in LOAD TABLE FROM MASTER

parent b617e9ba
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -169,7 +169,7 @@ static int create_table_from_dump(THD* thd, NET* net, const char* db,
  tables.name = tables.real_name = (char*)table_name;
  tables.lock_type = TL_WRITE;
  thd->proc_info = "Opening master dump table";
  if(open_ltable(thd, &tables) || !tables.table)
  if(!open_ltable(thd, &tables, TL_WRITE))
    {
      // open tables will send the error
      sql_print_error("create_table_from_dump: could not open created table");
+0 −1
Original line number Diff line number Diff line
@@ -248,7 +248,6 @@ check_connections(THD *thd)
    int2store(end+3,thd->server_status);
    bzero(end+5,13);
    end+=18;
    net->timeout = net_read_timeout;
    if (net_write_command(net,protocol_version, buff,
			  (uint) (end-buff)) ||
       (pkt_len=my_net_read(net)) == packet_error ||