File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -1837,7 +1837,7 @@ THD::~THD()
1837
1837
mysql_mutex_unlock (&LOCK_wsrep_thd);
1838
1838
mysql_mutex_destroy (&LOCK_wsrep_thd);
1839
1839
if (wsrep_rgi) delete wsrep_rgi;
1840
- if (wsrep_status_vars) wsrep-> stats_free (wsrep, wsrep_status_vars );
1840
+ wsrep_free_status ( this );
1841
1841
#endif
1842
1842
/* Close connection */
1843
1843
#ifndef EMBEDDED_LIBRARY
Original file line number Diff line number Diff line change @@ -567,10 +567,7 @@ static void export_wsrep_status_to_mysql(THD* thd)
567
567
{
568
568
int wsrep_status_len, i;
569
569
570
- if (thd->wsrep_status_vars )
571
- {
572
- wsrep->stats_free (wsrep, thd->wsrep_status_vars );
573
- }
570
+ wsrep_free_status (thd);
574
571
575
572
thd->wsrep_status_vars = wsrep->stats_get (wsrep);
576
573
You can’t perform that action at this time.
0 commit comments