Commit cf436201 authored by Daniele Sciascia's avatar Daniele Sciascia Committed by Nirbhay Choubey

refs codership/galera#308

- Avoid calling wsrep->stats_free() directly, instead, use wsrep_free_status().
parent 8c89e843
...@@ -1837,7 +1837,7 @@ THD::~THD() ...@@ -1837,7 +1837,7 @@ THD::~THD()
mysql_mutex_unlock(&LOCK_wsrep_thd); mysql_mutex_unlock(&LOCK_wsrep_thd);
mysql_mutex_destroy(&LOCK_wsrep_thd); mysql_mutex_destroy(&LOCK_wsrep_thd);
if (wsrep_rgi) delete wsrep_rgi; if (wsrep_rgi) delete wsrep_rgi;
if (wsrep_status_vars) wsrep->stats_free(wsrep, wsrep_status_vars); wsrep_free_status(this);
#endif #endif
/* Close connection */ /* Close connection */
#ifndef EMBEDDED_LIBRARY #ifndef EMBEDDED_LIBRARY
......
...@@ -567,10 +567,7 @@ static void export_wsrep_status_to_mysql(THD* thd) ...@@ -567,10 +567,7 @@ static void export_wsrep_status_to_mysql(THD* thd)
{ {
int wsrep_status_len, i; int wsrep_status_len, i;
if (thd->wsrep_status_vars) wsrep_free_status(thd);
{
wsrep->stats_free(wsrep, thd->wsrep_status_vars);
}
thd->wsrep_status_vars = wsrep->stats_get(wsrep); thd->wsrep_status_vars = wsrep->stats_get(wsrep);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment