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
a010959a
Commit
a010959a
authored
Oct 09, 2021
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-26774 Compression provider unloading at runtime has no effect but doesn't produce a warning
parent
867f05de
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
1 deletion
+22
-1
mysql-test/suite/plugins/r/compression_load.result
mysql-test/suite/plugins/r/compression_load.result
+2
-0
sql/sql_plugin.cc
sql/sql_plugin.cc
+7
-1
storage/rocksdb/mysql-test/rocksdb/r/mariadb_plugin.result
storage/rocksdb/mysql-test/rocksdb/r/mariadb_plugin.result
+13
-0
No files found.
mysql-test/suite/plugins/r/compression_load.result
View file @
a010959a
...
...
@@ -17,6 +17,8 @@ a left(b, 9) length(b)
1 defdefdef 3000
2 ghighighi 30000
uninstall plugin provider_lz4;
Warnings:
Warning 1620 Plugin is busy and will be uninstalled on shutdown
select plugin_name, plugin_status from information_schema.plugins where plugin_name='provider_lz4';
plugin_name plugin_status
provider_lz4 INACTIVE
...
...
sql/sql_plugin.cc
View file @
a010959a
...
...
@@ -1267,7 +1267,13 @@ static void plugin_deinitialize(struct st_plugin_int *plugin, bool ref_check)
if
(
!
deinit
)
deinit
=
(
plugin_type_init
)(
plugin
->
plugin
->
deinit
);
if
(
!
deinit
||
!
deinit
(
plugin
))
if
(
deinit
&&
deinit
(
plugin
))
{
if
(
THD
*
thd
=
current_thd
)
push_warning
(
thd
,
Sql_condition
::
WARN_LEVEL_WARN
,
WARN_PLUGIN_BUSY
,
ER_THD
(
thd
,
WARN_PLUGIN_BUSY
));
}
else
plugin
->
state
=
PLUGIN_IS_UNINITIALIZED
;
// free to unload
if
(
ref_check
&&
plugin
->
ref_count
)
...
...
storage/rocksdb/mysql-test/rocksdb/r/mariadb_plugin.result
View file @
a010959a
...
...
@@ -10,6 +10,19 @@ connection default;
UNINSTALL SONAME 'ha_rocksdb';
Warnings:
Warning 1620 Plugin is busy and will be uninstalled on shutdown
Warning 1620 Plugin is busy and will be uninstalled on shutdown
Warning 1620 Plugin is busy and will be uninstalled on shutdown
Warning 1620 Plugin is busy and will be uninstalled on shutdown
Warning 1620 Plugin is busy and will be uninstalled on shutdown
Warning 1620 Plugin is busy and will be uninstalled on shutdown
Warning 1620 Plugin is busy and will be uninstalled on shutdown
Warning 1620 Plugin is busy and will be uninstalled on shutdown
Warning 1620 Plugin is busy and will be uninstalled on shutdown
Warning 1620 Plugin is busy and will be uninstalled on shutdown
Warning 1620 Plugin is busy and will be uninstalled on shutdown
Warning 1620 Plugin is busy and will be uninstalled on shutdown
Warning 1620 Plugin is busy and will be uninstalled on shutdown
Warning 1620 Plugin is busy and will be uninstalled on shutdown
SELECT ENGINE, SUPPORT FROM INFORMATION_SCHEMA.ENGINES WHERE ENGINE='ROCKSDB';
ENGINE SUPPORT
ROCKSDB NO
...
...
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