mirror of
https://github.com/MariaDB/server.git
synced 2025-11-08 00:28:29 +03:00
Merge from the main tree.
This commit is contained in:
@@ -1758,9 +1758,9 @@ void close_connection(THD *thd, uint errcode, bool lock)
|
|||||||
net_send_error(thd, errcode, ER(errcode)); /* purecov: inspected */
|
net_send_error(thd, errcode, ER(errcode)); /* purecov: inspected */
|
||||||
vio_close(vio); /* vio is freed in delete thd */
|
vio_close(vio); /* vio is freed in delete thd */
|
||||||
}
|
}
|
||||||
|
MYSQL_CONNECTION_DONE((int) errcode, thd->thread_id);
|
||||||
if (lock)
|
if (lock)
|
||||||
(void) pthread_mutex_unlock(&LOCK_thread_count);
|
(void) pthread_mutex_unlock(&LOCK_thread_count);
|
||||||
MYSQL_CONNECTION_DONE((int) errcode, thd->thread_id);
|
|
||||||
DBUG_VOID_RETURN;
|
DBUG_VOID_RETURN;
|
||||||
}
|
}
|
||||||
#endif /* EMBEDDED_LIBRARY */
|
#endif /* EMBEDDED_LIBRARY */
|
||||||
|
|||||||
Reference in New Issue
Block a user