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
b9b41a5f
Commit
b9b41a5f
authored
Jul 10, 2013
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix plugin.test - bad merge in TABLE_SHARE::destroy, ha_share must be deleted before the plugin
parent
d641028f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
mysql-test/r/plugin.result
mysql-test/r/plugin.result
+3
-3
sql/table.cc
sql/table.cc
+6
-6
No files found.
mysql-test/r/plugin.result
View file @
b9b41a5f
...
...
@@ -15,7 +15,7 @@ PLUGIN_STATUS ACTIVE
PLUGIN_TYPE STORAGE ENGINE
PLUGIN_TYPE_VERSION #
PLUGIN_LIBRARY ha_example.so
PLUGIN_LIBRARY_VERSION 1.
4
PLUGIN_LIBRARY_VERSION 1.
5
PLUGIN_AUTHOR Brian Aker, MySQL AB
PLUGIN_DESCRIPTION Example storage engine
PLUGIN_LICENSE GPL
...
...
@@ -28,7 +28,7 @@ PLUGIN_STATUS ACTIVE
PLUGIN_TYPE DAEMON
PLUGIN_TYPE_VERSION #
PLUGIN_LIBRARY ha_example.so
PLUGIN_LIBRARY_VERSION 1.
4
PLUGIN_LIBRARY_VERSION 1.
5
PLUGIN_AUTHOR Sergei Golubchik
PLUGIN_DESCRIPTION Unusable Daemon
PLUGIN_LICENSE GPL
...
...
@@ -57,7 +57,7 @@ PLUGIN_STATUS DELETED
PLUGIN_TYPE STORAGE ENGINE
PLUGIN_TYPE_VERSION #
PLUGIN_LIBRARY ha_example.so
PLUGIN_LIBRARY_VERSION 1.
4
PLUGIN_LIBRARY_VERSION 1.
5
PLUGIN_AUTHOR Brian Aker, MySQL AB
PLUGIN_DESCRIPTION Example storage engine
PLUGIN_LICENSE GPL
...
...
sql/table.cc
View file @
b9b41a5f
...
...
@@ -429,6 +429,12 @@ void TABLE_SHARE::destroy()
DBUG_ENTER
(
"TABLE_SHARE::destroy"
);
DBUG_PRINT
(
"info"
,
(
"db: %s table: %s"
,
db
.
str
,
table_name
.
str
));
if
(
ha_share
)
{
delete
ha_share
;
ha_share
=
NULL
;
// Safety
}
free_root
(
&
stats_cb
.
mem_root
,
MYF
(
0
));
stats_cb
.
stats_can_be_read
=
FALSE
;
stats_cb
.
stats_is_read
=
FALSE
;
...
...
@@ -451,12 +457,6 @@ void TABLE_SHARE::destroy()
info_it
->
flags
=
0
;
}
}
if
(
ha_share
)
{
delete
ha_share
;
ha_share
=
NULL
;
// Safety
}
#ifdef HAVE_PSI_TABLE_INTERFACE
PSI_TABLE_CALL
(
release_table_share
)(
m_psi
);
#endif
...
...
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