Commit 0d405ed0 authored by Sergei Golubchik's avatar Sergei Golubchik

remove long time obsolete xyz_ci() copies of xyz() macros

parent 73f79ac8
...@@ -310,8 +310,6 @@ static void plugin_vars_free_values(sys_var *vars); ...@@ -310,8 +310,6 @@ static void plugin_vars_free_values(sys_var *vars);
static void restore_pluginvar_names(sys_var *first); static void restore_pluginvar_names(sys_var *first);
static void plugin_opt_set_limits(struct my_option *, static void plugin_opt_set_limits(struct my_option *,
const struct st_mysql_sys_var *); const struct st_mysql_sys_var *);
#define my_intern_plugin_lock(A,B) intern_plugin_lock(A,B)
#define my_intern_plugin_lock_ci(A,B) intern_plugin_lock(A,B)
static plugin_ref intern_plugin_lock(LEX *lex, plugin_ref plugin); static plugin_ref intern_plugin_lock(LEX *lex, plugin_ref plugin);
static void intern_plugin_unlock(LEX *lex, plugin_ref plugin); static void intern_plugin_unlock(LEX *lex, plugin_ref plugin);
static void reap_plugins(void); static void reap_plugins(void);
...@@ -973,7 +971,7 @@ plugin_ref plugin_lock(THD *thd, plugin_ref ptr) ...@@ -973,7 +971,7 @@ plugin_ref plugin_lock(THD *thd, plugin_ref ptr)
#endif #endif
mysql_mutex_lock(&LOCK_plugin); mysql_mutex_lock(&LOCK_plugin);
plugin_ref_to_int(ptr)->locks_total++; plugin_ref_to_int(ptr)->locks_total++;
rc= my_intern_plugin_lock_ci(lex, ptr); rc= intern_plugin_lock(lex, ptr);
mysql_mutex_unlock(&LOCK_plugin); mysql_mutex_unlock(&LOCK_plugin);
DBUG_RETURN(rc); DBUG_RETURN(rc);
} }
...@@ -987,7 +985,7 @@ plugin_ref plugin_lock_by_name(THD *thd, const LEX_STRING *name, int type) ...@@ -987,7 +985,7 @@ plugin_ref plugin_lock_by_name(THD *thd, const LEX_STRING *name, int type)
DBUG_ENTER("plugin_lock_by_name"); DBUG_ENTER("plugin_lock_by_name");
mysql_mutex_lock(&LOCK_plugin); mysql_mutex_lock(&LOCK_plugin);
if ((plugin= plugin_find_internal(name, type))) if ((plugin= plugin_find_internal(name, type)))
rc= my_intern_plugin_lock_ci(lex, plugin_int_to_ref(plugin)); rc= intern_plugin_lock(lex, plugin_int_to_ref(plugin));
mysql_mutex_unlock(&LOCK_plugin); mysql_mutex_unlock(&LOCK_plugin);
DBUG_RETURN(rc); DBUG_RETURN(rc);
} }
...@@ -1597,7 +1595,7 @@ int plugin_init(int *argc, char **argv, int flags) ...@@ -1597,7 +1595,7 @@ int plugin_init(int *argc, char **argv, int flags)
{ {
DBUG_ASSERT(!global_system_variables.table_plugin); DBUG_ASSERT(!global_system_variables.table_plugin);
global_system_variables.table_plugin= global_system_variables.table_plugin=
my_intern_plugin_lock(NULL, plugin_int_to_ref(plugin_ptr)); intern_plugin_lock(NULL, plugin_int_to_ref(plugin_ptr));
DBUG_ASSERT(plugin_ptr->ref_count == 1); DBUG_ASSERT(plugin_ptr->ref_count == 1);
} }
} }
...@@ -2652,7 +2650,7 @@ sys_var *find_sys_var(THD *thd, const char *str, uint length) ...@@ -2652,7 +2650,7 @@ sys_var *find_sys_var(THD *thd, const char *str, uint length)
{ {
mysql_rwlock_unlock(&LOCK_system_variables_hash); mysql_rwlock_unlock(&LOCK_system_variables_hash);
LEX *lex= thd ? thd->lex : 0; LEX *lex= thd ? thd->lex : 0;
if (!(plugin= my_intern_plugin_lock(lex, plugin_int_to_ref(pi->plugin)))) if (!(plugin= intern_plugin_lock(lex, plugin_int_to_ref(pi->plugin))))
var= NULL; /* failed to lock it, it must be uninstalling */ var= NULL; /* failed to lock it, it must be uninstalling */
else else
if (!(plugin_state(plugin) & PLUGIN_IS_READY)) if (!(plugin_state(plugin) & PLUGIN_IS_READY))
...@@ -2976,7 +2974,7 @@ void plugin_thdvar_init(THD *thd) ...@@ -2976,7 +2974,7 @@ void plugin_thdvar_init(THD *thd)
mysql_mutex_lock(&LOCK_plugin); mysql_mutex_lock(&LOCK_plugin);
thd->variables.table_plugin= thd->variables.table_plugin=
my_intern_plugin_lock(NULL, global_system_variables.table_plugin); intern_plugin_lock(NULL, global_system_variables.table_plugin);
intern_plugin_unlock(NULL, old_table_plugin); intern_plugin_unlock(NULL, old_table_plugin);
mysql_mutex_unlock(&LOCK_plugin); mysql_mutex_unlock(&LOCK_plugin);
DBUG_VOID_RETURN; DBUG_VOID_RETURN;
......
...@@ -150,9 +150,7 @@ extern void plugin_shutdown(void); ...@@ -150,9 +150,7 @@ extern void plugin_shutdown(void);
void add_plugin_options(DYNAMIC_ARRAY *options, MEM_ROOT *mem_root); void add_plugin_options(DYNAMIC_ARRAY *options, MEM_ROOT *mem_root);
extern bool plugin_is_ready(const LEX_STRING *name, int type); extern bool plugin_is_ready(const LEX_STRING *name, int type);
#define my_plugin_lock_by_name(A,B,C) plugin_lock_by_name(A,B,C) #define my_plugin_lock_by_name(A,B,C) plugin_lock_by_name(A,B,C)
#define my_plugin_lock_by_name_ci(A,B,C) plugin_lock_by_name(A,B,C)
#define my_plugin_lock(A,B) plugin_lock(A,B) #define my_plugin_lock(A,B) plugin_lock(A,B)
#define my_plugin_lock_ci(A,B) plugin_lock(A,B)
extern plugin_ref plugin_lock(THD *thd, plugin_ref ptr); extern plugin_ref plugin_lock(THD *thd, plugin_ref ptr);
extern plugin_ref plugin_lock_by_name(THD *thd, const LEX_STRING *name, extern plugin_ref plugin_lock_by_name(THD *thd, const LEX_STRING *name,
int type); int type);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment