mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Adieu find_sys_var_ex()
Only take LOCK_plugin for plugin system variables. Reverted optimisation that was originally done for session tracker: it makes much less sense now. Specifically only if connections would want to track plugin session variables changes and these changes would actually happen frequently. If this ever becomes an issue, there're much better ways to optimise this workload. Part of MDEV-14984 - regression in connect performance
This commit is contained in:
@ -398,7 +398,8 @@ extern SHOW_COMP_OPTION have_openssl;
|
||||
SHOW_VAR* enumerate_sys_vars(THD *thd, bool sorted, enum enum_var_type type);
|
||||
int fill_sysvars(THD *thd, TABLE_LIST *tables, COND *cond);
|
||||
|
||||
sys_var *find_sys_var(THD *thd, const char *str, size_t length=0);
|
||||
sys_var *find_sys_var(THD *thd, const char *str, size_t length= 0,
|
||||
bool throw_error= false);
|
||||
int sql_set_variables(THD *thd, List<set_var_base> *var_list, bool free);
|
||||
|
||||
#define SYSVAR_AUTOSIZE(VAR,VAL) \
|
||||
|
Reference in New Issue
Block a user