fix for the fatal bug in LOAD TABLE FROM MASTER

This commit is contained in:
sasha@mysql.sashanet.com 2000-08-15 17:49:07 -06:00
parent b617e9baa8
commit ac9de478db
2 changed files with 1 additions and 2 deletions

View File

@ -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");

View File

@ -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 ||