mirror of
https://github.com/MariaDB/server.git
synced 2026-05-14 19:07:15 +02:00
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.
This commit is contained in:
parent
790a3a46f3
commit
289af2579b
1 changed files with 2 additions and 1 deletions
|
|
@ -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));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue