]> git.pld-linux.org Git - packages/mysql.git/blob - bug813587.patch
master-{user,host,port,password} no longer settable from mysqld.conf
[packages/mysql.git] / bug813587.patch
1 # name       : bug813587.patch
2 # maintainer : Alexey
3 #
4 # Fix for LP bug #813587 / MySQL bug #51196 / MySQL bug #61790
5 #
6 # Clear MySQL connection errors in ha_federated::close(), since they
7 # can affect queries on other tables due to table cache eviction.
8 #
9 --- a/storage/federated/ha_federated.cc
10 +++ b/storage/federated/ha_federated.cc
11 @@ -1675,6 +1675,8 @@
12  
13  int ha_federated::close(void)
14  {
15 +  THD *thd= current_thd;
16 +
17    DBUG_ENTER("ha_federated::close");
18  
19    free_result();
20 @@ -1685,6 +1687,10 @@
21    mysql_close(mysql);
22    mysql= NULL;
23  
24 +  /* Clear possible errors from mysql_close(), see LP bug #813587. */
25 +  if (thd)
26 +    thd->clear_error();
27 +
28    DBUG_RETURN(free_share(share));
29  }
30  
This page took 0.213136 seconds and 3 git commands to generate.