summaryrefslogtreecommitdiff
path: root/storage/federated
diff options
context:
space:
mode:
authorRamil Kalimullin <ramil@mysql.com>2011-12-23 18:52:44 +0400
committerRamil Kalimullin <ramil@mysql.com>2011-12-23 18:52:44 +0400
commit289af2579b5084d554b71a9307ec705afbba8ae7 (patch)
tree414c11cc24417fd2944fce68a607e6e1fbd10aae /storage/federated
parent790a3a46f38ca1040f756fd64c0cca7b78b50f67 (diff)
downloadmariadb-git-289af2579b5084d554b71a9307ec705afbba8ae7.tar.gz
Fix for bug#11758931 - 51196: SLAVE SQL: GOT AN ERROR WRITING
COMMUNICATION PACKETS, ERROR_CODE: 1160 Addendum: for some queries table->in_use might be NULL - check it.
Diffstat (limited to 'storage/federated')
-rw-r--r--storage/federated/ha_federated.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/storage/federated/ha_federated.cc b/storage/federated/ha_federated.cc
index 64d5af446d8..f53066a4b22 100644
--- a/storage/federated/ha_federated.cc
+++ b/storage/federated/ha_federated.cc
@@ -1658,7 +1658,8 @@ int ha_federated::close(void)
if the original query was not issued against the FEDERATED table.
So, don't propagate errors from mysql_close().
*/
- table->in_use->clear_error();
+ if (table->in_use)
+ table->in_use->clear_error();
DBUG_RETURN(free_share(share));
}