diff options
Diffstat (limited to 'sql/sql_connect.cc')
-rw-r--r-- | sql/sql_connect.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sql/sql_connect.cc b/sql/sql_connect.cc index 09ee4962235..41b4c1b8e31 100644 --- a/sql/sql_connect.cc +++ b/sql/sql_connect.cc @@ -966,6 +966,7 @@ bool login_connection(THD *thd) void end_connection(THD *thd) { NET *net= &thd->net; + plugin_thdvar_cleanup(thd); if (thd->user_connect) decrease_user_connections(thd->user_connect); if (net->error && net->vio != 0 && net->report_error) @@ -1003,6 +1004,8 @@ void prepare_new_connection_state(THD* thd) if (thd->client_capabilities & CLIENT_COMPRESS) thd->net.compress=1; // Use compression + plugin_thdvar_init(thd, true); + thd->version= refresh_version; thd->proc_info= 0; thd->command= COM_SLEEP; |