diff options
author | Marko Mäkelä <marko.makela@mariadb.com> | 2018-01-30 20:18:25 +0200 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2018-01-30 20:18:25 +0200 |
commit | 6d390bab4a0695fedeead35e78111e1033f7b3df (patch) | |
tree | d02c2b38010ca61adb829a45df3e1051463300a8 /sql/set_var.cc | |
parent | 8317ce73d448134a1c8c4a85fbe293b329a5593a (diff) | |
parent | 446b3d356218bff06efe4b3f5df89595cdfe8284 (diff) | |
download | mariadb-git-6d390bab4a0695fedeead35e78111e1033f7b3df.tar.gz |
Merge 10.2 into bb-10.2-ext
Diffstat (limited to 'sql/set_var.cc')
-rw-r--r-- | sql/set_var.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sql/set_var.cc b/sql/set_var.cc index 15f6bbdafc5..77579146f23 100644 --- a/sql/set_var.cc +++ b/sql/set_var.cc @@ -597,10 +597,10 @@ int mysql_del_sys_var_chain(sys_var *first) { int result= 0; - mysql_rwlock_wrlock(&LOCK_system_variables_hash); + mysql_prlock_wrlock(&LOCK_system_variables_hash); for (sys_var *var= first; var; var= var->next) result|= my_hash_delete(&system_variable_hash, (uchar*) var); - mysql_rwlock_unlock(&LOCK_system_variables_hash); + mysql_prlock_unlock(&LOCK_system_variables_hash); return result; } @@ -1082,7 +1082,7 @@ int fill_sysvars(THD *thd, TABLE_LIST *tables, COND *cond) cond= make_cond_for_info_schema(thd, cond, tables); thd->count_cuted_fields= CHECK_FIELD_WARN; - mysql_rwlock_rdlock(&LOCK_system_variables_hash); + mysql_prlock_rdlock(&LOCK_system_variables_hash); for (uint i= 0; i < system_variable_hash.records; i++) { @@ -1244,7 +1244,7 @@ int fill_sysvars(THD *thd, TABLE_LIST *tables, COND *cond) } res= 0; end: - mysql_rwlock_unlock(&LOCK_system_variables_hash); + mysql_prlock_unlock(&LOCK_system_variables_hash); thd->count_cuted_fields= save_count_cuted_fields; return res; } |