summaryrefslogtreecommitdiff
path: root/sql/sys_vars.ic
diff options
context:
space:
mode:
authorSergey Vojtovich <svoj@mariadb.org>2019-03-19 00:40:26 +0400
committerSergey Vojtovich <svoj@mariadb.org>2019-05-03 16:43:29 +0400
commit554ac6f393941040cea6d45d57a298e900bff193 (patch)
treeb704de36e34e2386928e031627da6127f01ecf20 /sql/sys_vars.ic
parenta7adc2ce1680f00635b8241202066fd5542d286f (diff)
downloadmariadb-git-554ac6f393941040cea6d45d57a298e900bff193.tar.gz
Allocate Session_sysvars_tracker statically
One less new/delete per connection. Removed m_mem_flag since most allocs are thread specific. The only exception are allocs performed during initialization. Removed State_tracker and Session_tracker constructors as they don't make sense anymore. No reason to access session_sysvars_tracker via get_tracker(), so access it directly instead. Part of MDEV-14984 - regression in connect performance
Diffstat (limited to 'sql/sys_vars.ic')
-rw-r--r--sql/sys_vars.ic5
1 files changed, 1 insertions, 4 deletions
diff --git a/sql/sys_vars.ic b/sql/sys_vars.ic
index 042b7c75da7..24fdc2d04a4 100644
--- a/sql/sys_vars.ic
+++ b/sql/sys_vars.ic
@@ -623,10 +623,7 @@ public:
return (new_val == 0 && var->save_result.string_value.str != 0);
}
bool session_update(THD *thd, set_var *var)
- {
- return thd->session_tracker.get_tracker(SESSION_SYSVARS_TRACKER)->
- update(thd, var);
- }
+ { return thd->session_tracker.sysvars.update(thd, var); }
void session_save_default(THD *thd, set_var *var)
{
var->save_result.string_value.str= global_var(char*);