mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
MDEV-23065 : Crash after setting wsrep_on to ON dynamically and reconnect
At end_connection make sure we have wsrep before trying to free connection assigned to it.
This commit is contained in:
@ -1112,7 +1112,7 @@ void end_connection(THD *thd)
|
||||
{
|
||||
NET *net= &thd->net;
|
||||
#ifdef WITH_WSREP
|
||||
if (WSREP(thd))
|
||||
if (WSREP(thd) && wsrep)
|
||||
{
|
||||
wsrep_status_t rcode= wsrep->free_connection(wsrep, thd->thread_id);
|
||||
if (rcode) {
|
||||
|
Reference in New Issue
Block a user