From 83c8b1901871ef35f9bf7a792aa8e518f289c0d5 Mon Sep 17 00:00:00 2001 From: "chuck.bell@oracle.com" <> Date: Thu, 15 Dec 2011 16:16:48 -0500 Subject: BUG#12969301 : mysql_plugin: enable is ignored if plugin exists This patch changes the mechanism by which the client enables a plugin. Instead of using INSERT IGNORE to reload a plugin library, it now uses REPLACE INTO. This allows users to load a library multiple times replacing the existing values in the mysql.plugin table. This allows users to replace the symbol reference to a different dl name in the table. Thus permitting enabling of multiple versions of the same library without first disabling the old version. A regression test was added to ensure this feature works. --- mysql-test/include/libdaemon_example.ini | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 mysql-test/include/libdaemon_example.ini (limited to 'mysql-test/include') diff --git a/mysql-test/include/libdaemon_example.ini b/mysql-test/include/libdaemon_example.ini new file mode 100644 index 00000000000..7e7df5bd2a2 --- /dev/null +++ b/mysql-test/include/libdaemon_example.ini @@ -0,0 +1,9 @@ +# +# Plugin configuration file. Place the following on a separate line: +# +# library binary file name (without .so or .dll) +# component_name +# [component_name] - additional components in plugin +# +liblibdaemon_example +daemon_example -- cgit v1.2.1