We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 69b6241 + 4b0eb43 commit 5865a38Copy full SHA for 5865a38
1 file changed
storage/federated/ha_federated.cc
@@ -1683,6 +1683,15 @@ int ha_federated::close(void)
1683
mysql_close(mysql);
1684
mysql= NULL;
1685
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
+
1695
DBUG_RETURN(free_share(share));
1696
}
1697
0 commit comments