1 # name : bug813587.patch
4 # Fix for LP bug #813587 / MySQL bug #51196 / MySQL bug #61790
6 # Clear MySQL connection errors in ha_federated::close(), since they
7 # can affect queries on other tables due to table cache eviction.
9 --- a/storage/federated/ha_federated.cc
10 +++ b/storage/federated/ha_federated.cc
13 int ha_federated::close(void)
15 + THD *thd= current_thd;
17 DBUG_ENTER("ha_federated::close");
20 @@ -1685,6 +1687,10 @@
24 + /* Clear possible errors from mysql_close(), see LP bug #813587. */
28 DBUG_RETURN(free_share(share));