Commit e8dd18a4 authored by Sergey Vojtovich's avatar Sergey Vojtovich

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
parent b6f4cccd
...@@ -164,6 +164,7 @@ class Session_sysvars_tracker: public State_tracker ...@@ -164,6 +164,7 @@ class Session_sysvars_tracker: public State_tracker
} }
public: public:
vars_list(): track_all(false) { init(); } vars_list(): track_all(false) { init(); }
~vars_list() { if (my_hash_inited(&m_registered_sysvars)) free_hash(); }
void deinit() { free_hash(); } void deinit() { free_hash(); }
sysvar_node_st *insert_or_search(const sys_var *svar) sysvar_node_st *insert_or_search(const sys_var *svar)
......
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