diff options
author | Daniele Sciascia <daniele.sciascia@galeracluster.com> | 2015-10-16 10:22:30 +0200 |
---|---|---|
committer | Nirbhay Choubey <nirbhay@mariadb.com> | 2016-02-22 16:38:32 -0500 |
commit | 8c89e843db9e324ee5ad7607ef7e6dacee42b546 (patch) | |
tree | 7a5f8d460cd87e7fa493813868c4428792125be5 /sql/wsrep_var.cc | |
parent | 2c56142b770d9f8db24cc286ee768cc3edbfdd56 (diff) | |
download | mariadb-git-8c89e843db9e324ee5ad7607ef7e6dacee42b546.tar.gz |
refs codership/galera#308
- Moves cleanup of status vars to function export_wsrep_status_to_mysql().
Diffstat (limited to 'sql/wsrep_var.cc')
-rw-r--r-- | sql/wsrep_var.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sql/wsrep_var.cc b/sql/wsrep_var.cc index a3366000fc5..7e64b654c92 100644 --- a/sql/wsrep_var.cc +++ b/sql/wsrep_var.cc @@ -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) { |