Skip to content

Commit 5865a38

Browse files
author
Ramil Kalimullin
committed
Auto-merge from mysql-5.5.
2 parents 69b6241 + 4b0eb43 commit 5865a38

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

storage/federated/ha_federated.cc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1683,6 +1683,15 @@ int ha_federated::close(void)
16831683
mysql_close(mysql);
16841684
mysql= NULL;
16851685

1686+
/*
1687+
mysql_close() might return an error if a remote server's gone
1688+
for some reason. If that happens while removing a table from
1689+
the table cache, the error will be propagated to a client even
1690+
if the original query was not issued against the FEDERATED table.
1691+
So, don't propagate errors from mysql_close().
1692+
*/
1693+
table->in_use->clear_error();
1694+
16861695
DBUG_RETURN(free_share(share));
16871696
}
16881697

0 commit comments

Comments
 (0)