mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
WL#2936
"Server Variables for Plugins" Implement support for plugins to declare server variables. Demonstrate functionality by removing InnoDB specific code from sql/* New feature for HASH - HASH_UNIQUE flag New feature for DYNAMIC_ARRAY - initializer accepts preallocated ptr. Completed support for plugin reference counting.
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user