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
7349ddae
Commit
7349ddae
authored
Aug 12, 2010
by
Konstantin Osipov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove dead code.
parent
add2913a
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
16 deletions
+5
-16
sql/sql_base.cc
sql/sql_base.cc
+2
-12
sql/sql_base.h
sql/sql_base.h
+1
-2
sql/sql_servers.cc
sql/sql_servers.cc
+2
-2
No files found.
sql/sql_base.cc
View file @
7349ddae
...
...
@@ -1150,13 +1150,12 @@ err_with_reopen:
}
/*
/*
*
Close all tables which match specified connection string or
if specified string is NULL, then any table with a connection string.
*/
bool
close_cached_connection_tables
(
THD
*
thd
,
bool
if_wait_for_refresh
,
LEX_STRING
*
connection
)
bool
close_cached_connection_tables
(
THD
*
thd
,
LEX_STRING
*
connection
)
{
uint
idx
;
TABLE_LIST
tmp
,
*
tables
=
NULL
;
...
...
@@ -1199,15 +1198,6 @@ bool close_cached_connection_tables(THD *thd, bool if_wait_for_refresh,
if
(
tables
)
result
=
close_cached_tables
(
thd
,
tables
,
FALSE
,
LONG_TIMEOUT
);
if
(
if_wait_for_refresh
)
{
mysql_mutex_lock
(
&
thd
->
mysys_var
->
mutex
);
thd
->
mysys_var
->
current_mutex
=
0
;
thd
->
mysys_var
->
current_cond
=
0
;
thd
->
proc_info
=
0
;
mysql_mutex_unlock
(
&
thd
->
mysys_var
->
mutex
);
}
DBUG_RETURN
(
result
);
}
...
...
sql/sql_base.h
View file @
7349ddae
...
...
@@ -229,8 +229,7 @@ void close_performance_schema_table(THD *thd, Open_tables_state *backup);
bool
close_cached_tables
(
THD
*
thd
,
TABLE_LIST
*
tables
,
bool
wait_for_refresh
,
ulong
timeout
);
bool
close_cached_connection_tables
(
THD
*
thd
,
bool
wait_for_refresh
,
LEX_STRING
*
connect_string
);
bool
close_cached_connection_tables
(
THD
*
thd
,
LEX_STRING
*
connect_string
);
void
close_all_tables_for_name
(
THD
*
thd
,
TABLE_SHARE
*
share
,
bool
remove_from_locked_tables
);
OPEN_TABLE_LIST
*
list_open_tables
(
THD
*
thd
,
const
char
*
db
,
const
char
*
wild
);
...
...
sql/sql_servers.cc
View file @
7349ddae
...
...
@@ -628,7 +628,7 @@ int drop_server(THD *thd, LEX_SERVER_OPTIONS *server_options)
/* close the servers table before we call closed_cached_connection_tables */
close_mysql_tables
(
thd
);
if
(
close_cached_connection_tables
(
thd
,
TRUE
,
&
name
))
if
(
close_cached_connection_tables
(
thd
,
&
name
))
{
push_warning_printf
(
thd
,
MYSQL_ERROR
::
WARN_LEVEL_WARN
,
ER_UNKNOWN_ERROR
,
"Server connection in use"
);
...
...
@@ -1057,7 +1057,7 @@ int alter_server(THD *thd, LEX_SERVER_OPTIONS *server_options)
/* close the servers table before we call closed_cached_connection_tables */
close_mysql_tables
(
thd
);
if
(
close_cached_connection_tables
(
thd
,
FALSE
,
&
name
))
if
(
close_cached_connection_tables
(
thd
,
&
name
))
{
push_warning_printf
(
thd
,
MYSQL_ERROR
::
WARN_LEVEL_WARN
,
ER_UNKNOWN_ERROR
,
"Server connection in use"
);
...
...
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