Commit d0ed9f43 authored by Ramil Kalimullin's avatar Ramil Kalimullin

Auto-merge from mysq-5.1.

parents 086ee89a 790a3a46
......@@ -1685,6 +1685,15 @@ int ha_federated::close(void)
mysql_close(mysql);
mysql= NULL;
/*
mysql_close() might return an error if a remote server's gone
for some reason. If that happens while removing a table from
the table cache, the error will be propagated to a client even
if the original query was not issued against the FEDERATED table.
So, don't propagate errors from mysql_close().
*/
table->in_use->clear_error();
DBUG_RETURN(free_share(share));
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment