mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Removed redundant SE lock for tmp tables
CREATE TEMPORARY TABLE locks SE plugin 6 times. 5 of these locks are released by the end of the statement. And only 1 acquired by init_from_binary_frm_image() / plugin_lock() remains. The lock removed in this patch was clearly redundant. Part of MDEV-17805 - Remove InnoDB cache for temporary tables.
This commit is contained in:
@ -378,3 +378,18 @@ select PLUGIN_NAME,PLUGIN_STATUS,PLUGIN_TYPE from information_schema.plugins whe
|
||||
PLUGIN_NAME PLUGIN_STATUS PLUGIN_TYPE
|
||||
UNINSTALL SONAME 'ha_example';
|
||||
ERROR 42000: SONAME ha_example.so does not exist
|
||||
#
|
||||
# Make sure temporary tables maintain plugin references properly
|
||||
#
|
||||
INSTALL PLUGIN example SONAME 'ha_example';
|
||||
CREATE TEMPORARY TABLE t1(a INT) ENGINE=example;
|
||||
UNINSTALL PLUGIN example;
|
||||
Warnings:
|
||||
Warning 1620 Plugin is busy and will be uninstalled on shutdown
|
||||
INSTALL PLUGIN example SONAME 'ha_example';
|
||||
ERROR HY000: Plugin 'example' already installed
|
||||
DROP TABLE t1;
|
||||
INSTALL PLUGIN example SONAME 'ha_example';
|
||||
CREATE TEMPORARY TABLE t1(a INT) ENGINE=example;
|
||||
DROP TABLE t1;
|
||||
UNINSTALL PLUGIN example;
|
||||
|
Reference in New Issue
Block a user