1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

MDEV-10010 - Recursive call to mysql_rwlock_rdlock for LOCK_system_variables_hash

Avoid recursive LOCK_system_variables_hash acquisition in
intern_sys_var_ptr() by pre-syncing dynamic session variables.
This commit is contained in:
Sergey Vojtovich
2016-06-27 15:01:22 +04:00
parent 95c286cedf
commit ecb27d2650
3 changed files with 77 additions and 60 deletions

View File

@@ -190,4 +190,5 @@ extern bool plugin_foreach_with_mask(THD *thd, plugin_foreach_func *func,
extern bool plugin_dl_foreach(THD *thd, const LEX_STRING *dl,
plugin_foreach_func *func, void *arg);
extern void sync_dynamic_session_variables(THD* thd, bool global_lock);
#endif