Commit 8c89e843 authored by Daniele Sciascia's avatar Daniele Sciascia Committed by Nirbhay Choubey

refs codership/galera#308

- Moves cleanup of status vars to function export_wsrep_status_to_mysql().
parent 2c56142b
......@@ -2361,10 +2361,6 @@ void THD::cleanup_after_query()
rgi_slave->cleanup_after_query();
#endif
#ifdef WITH_WSREP
wsrep_free_status(this);
#endif /* WITH_WSREP */
DBUG_VOID_RETURN;
}
......
......@@ -567,6 +567,11 @@ static void export_wsrep_status_to_mysql(THD* thd)
{
int wsrep_status_len, i;
if (thd->wsrep_status_vars)
{
wsrep->stats_free(wsrep, thd->wsrep_status_vars);
}
thd->wsrep_status_vars = wsrep->stats_get(wsrep);
if (!thd->wsrep_status_vars) {
......
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