Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
0d405ed0
Commit
0d405ed0
authored
Apr 07, 2013
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove long time obsolete xyz_ci() copies of xyz() macros
parent
73f79ac8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
9 deletions
+5
-9
sql/sql_plugin.cc
sql/sql_plugin.cc
+5
-7
sql/sql_plugin.h
sql/sql_plugin.h
+0
-2
No files found.
sql/sql_plugin.cc
View file @
0d405ed0
...
...
@@ -310,8 +310,6 @@ static void plugin_vars_free_values(sys_var *vars);
static
void
restore_pluginvar_names
(
sys_var
*
first
);
static
void
plugin_opt_set_limits
(
struct
my_option
*
,
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
void
intern_plugin_unlock
(
LEX
*
lex
,
plugin_ref
plugin
);
static
void
reap_plugins
(
void
);
...
...
@@ -973,7 +971,7 @@ plugin_ref plugin_lock(THD *thd, plugin_ref ptr)
#endif
mysql_mutex_lock
(
&
LOCK_plugin
);
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
);
DBUG_RETURN
(
rc
);
}
...
...
@@ -987,7 +985,7 @@ plugin_ref plugin_lock_by_name(THD *thd, const LEX_STRING *name, int type)
DBUG_ENTER
(
"plugin_lock_by_name"
);
mysql_mutex_lock
(
&
LOCK_plugin
);
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
);
DBUG_RETURN
(
rc
);
}
...
...
@@ -1597,7 +1595,7 @@ int plugin_init(int *argc, char **argv, int flags)
{
DBUG_ASSERT
(
!
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
);
}
}
...
...
@@ -2652,7 +2650,7 @@ sys_var *find_sys_var(THD *thd, const char *str, uint length)
{
mysql_rwlock_unlock
(
&
LOCK_system_variables_hash
);
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 */
else
if
(
!
(
plugin_state
(
plugin
)
&
PLUGIN_IS_READY
))
...
...
@@ -2976,7 +2974,7 @@ void plugin_thdvar_init(THD *thd)
mysql_mutex_lock
(
&
LOCK_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
);
mysql_mutex_unlock
(
&
LOCK_plugin
);
DBUG_VOID_RETURN
;
...
...
sql/sql_plugin.h
View file @
0d405ed0
...
...
@@ -150,9 +150,7 @@ extern void plugin_shutdown(void);
void
add_plugin_options
(
DYNAMIC_ARRAY
*
options
,
MEM_ROOT
*
mem_root
);
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_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_ci(A,B) plugin_lock(A,B)
extern
plugin_ref
plugin_lock
(
THD
*
thd
,
plugin_ref
ptr
);
extern
plugin_ref
plugin_lock_by_name
(
THD
*
thd
,
const
LEX_STRING
*
name
,
int
type
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment