summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Vojtovich <svoj@mariadb.org>2019-05-04 12:43:29 +0400
committerSergey Vojtovich <svoj@mariadb.org>2019-05-04 12:43:29 +0400
commite8dd18a474ee6b48eb7f92e3831f9e359b0bdc6e (patch)
tree85a53bed497b4a6312d99414f2b00b65c0d557dd
parentb6f4cccd191f7d98306db9ebc6e8667ec9e1ec79 (diff)
downloadmariadb-git-e8dd18a474ee6b48eb7f92e3831f9e359b0bdc6e.tar.gz
Restore vars_list destructor
Regression after reverting fair THD members constructors/destructors. vars_list can be used standalone, in such cases destructor is needed. Part of MDEV-14984 - regression in connect performance
-rw-r--r--sql/session_tracker.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/session_tracker.h b/sql/session_tracker.h
index b6694970c38..226b026d590 100644
--- a/sql/session_tracker.h
+++ b/sql/session_tracker.h
@@ -164,6 +164,7 @@ class Session_sysvars_tracker: public State_tracker
}
public:
vars_list(): track_all(false) { init(); }
+ ~vars_list() { if (my_hash_inited(&m_registered_sysvars)) free_hash(); }
void deinit() { free_hash(); }
sysvar_node_st *insert_or_search(const sys_var *svar)