Skip to content

Commit cf43620

Browse files
Daniele SciasciaNirbhay Choubey
authored andcommitted
- Avoid calling wsrep->stats_free() directly, instead, use wsrep_free_status().
1 parent 8c89e84 commit cf43620

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

sql/sql_class.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1837,7 +1837,7 @@ THD::~THD()
18371837
mysql_mutex_unlock(&LOCK_wsrep_thd);
18381838
mysql_mutex_destroy(&LOCK_wsrep_thd);
18391839
if (wsrep_rgi) delete wsrep_rgi;
1840-
if (wsrep_status_vars) wsrep->stats_free(wsrep, wsrep_status_vars);
1840+
wsrep_free_status(this);
18411841
#endif
18421842
/* Close connection */
18431843
#ifndef EMBEDDED_LIBRARY

sql/wsrep_var.cc

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -567,10 +567,7 @@ static void export_wsrep_status_to_mysql(THD* thd)
567567
{
568568
int wsrep_status_len, i;
569569

570-
if (thd->wsrep_status_vars)
571-
{
572-
wsrep->stats_free(wsrep, thd->wsrep_status_vars);
573-
}
570+
wsrep_free_status(thd);
574571

575572
thd->wsrep_status_vars = wsrep->stats_get(wsrep);
576573

0 commit comments

Comments
 (0)