mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Merge remote-tracking branch 'origin/10.2' into bb-10.2-ext
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
/*
|
||||
Copyright (c) 2000, 2015, Oracle and/or its affiliates.
|
||||
Copyright (c) 2008, 2016, MariaDB
|
||||
Copyright (c) 2008, 2017, MariaDB Corporation.
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
@ -742,8 +742,8 @@ THD::THD(my_thread_id id, bool is_wsrep_applier)
|
||||
#endif
|
||||
{
|
||||
ulong tmp;
|
||||
bzero(&variables, sizeof(variables));
|
||||
|
||||
mdl_context.init(this);
|
||||
/*
|
||||
We set THR_THD to temporally point to this THD to register all the
|
||||
variables that allocates memory for this THD
|
||||
@ -753,8 +753,11 @@ THD::THD(my_thread_id id, bool is_wsrep_applier)
|
||||
status_var.local_memory_used= sizeof(THD);
|
||||
status_var.global_memory_used= 0;
|
||||
variables.pseudo_thread_id= thread_id;
|
||||
variables.max_mem_used= global_system_variables.max_mem_used;
|
||||
main_da.init();
|
||||
|
||||
mdl_context.init(this);
|
||||
|
||||
/*
|
||||
Pass nominal parameters to init_alloc_root only to ensure that
|
||||
the destructor works OK in case of an error. The main_mem_root
|
||||
@ -800,7 +803,6 @@ THD::THD(my_thread_id id, bool is_wsrep_applier)
|
||||
connection_name.str= 0;
|
||||
connection_name.length= 0;
|
||||
|
||||
bzero(&variables, sizeof(variables));
|
||||
file_id = 0;
|
||||
query_id= 0;
|
||||
query_name_consts= 0;
|
||||
|
Reference in New Issue
Block a user