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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
47a7c314
Commit
47a7c314
authored
May 10, 2016
by
Sergey Vojtovich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
close_open_tables() is not meaningful anymore
parent
1c68b9e9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
19 deletions
+2
-19
sql/sql_base.cc
sql/sql_base.cc
+2
-19
No files found.
sql/sql_base.cc
View file @
47a7c314
...
...
@@ -792,23 +792,6 @@ static void mark_used_tables_as_free_for_reuse(THD *thd, TABLE *table)
}
/**
Auxiliary function to close all tables in the open_tables list.
@param thd Thread context.
@remark It should not ordinarily be called directly.
*/
static
void
close_open_tables
(
THD
*
thd
)
{
DBUG_PRINT
(
"info"
,
(
"thd->open_tables: 0x%lx"
,
(
long
)
thd
->
open_tables
));
while
(
thd
->
open_tables
)
(
void
)
close_thread_table
(
thd
,
&
thd
->
open_tables
);
}
/**
Close all open instances of the table but keep the MDL lock.
...
...
@@ -1028,8 +1011,8 @@ void close_thread_tables(THD *thd)
Closing a MERGE child before the parent would be fatal if the
other thread tries to abort the MERGE lock in between.
*/
if
(
thd
->
open_tables
)
close_open_tables
(
thd
);
while
(
thd
->
open_tables
)
(
void
)
close_thread_table
(
thd
,
&
thd
->
open_tables
);
DBUG_VOID_RETURN
;
}
...
...
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