1
0
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:
Jan Lindström
2020-12-19 09:41:14 +02:00
parent 4e43e2f92d
commit d1e9a4c15c
3 changed files with 10 additions and 1 deletions

View File

@ -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) {