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
337c1b3e
Commit
337c1b3e
authored
Apr 19, 2013
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix plugin locking/unlocking when assisted discovery fails
parent
faf4d99d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
sql/sql_table.cc
sql/sql_table.cc
+10
-0
No files found.
sql/sql_table.cc
View file @
337c1b3e
...
@@ -4420,6 +4420,16 @@ bool mysql_create_table_no_lock(THD *thd,
...
@@ -4420,6 +4420,16 @@ bool mysql_create_table_no_lock(THD *thd,
goto
err
;
goto
err
;
ha_err
=
hton
->
discover_table_structure
(
hton
,
thd
,
&
share
,
create_info
);
ha_err
=
hton
->
discover_table_structure
(
hton
,
thd
,
&
share
,
create_info
);
/*
if discovery failed, the plugin will be auto-unlocked, as it
was locked on the THD, see above.
if discovery succeeded, the plugin was replaced by a globally
locked plugin, that will be unlocked by free_table_share()
*/
if
(
ha_err
)
share
.
db_plugin
=
0
;
// will be auto-freed, locked above on the THD
free_table_share
(
&
share
);
free_table_share
(
&
share
);
if
(
ha_err
)
if
(
ha_err
)
...
...
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