1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

MDEV-6543 Crash if enable 'federatedx' when 'federated' plugin already enabled, and vice-versa

INSTALL SONAME ignores attempts to load the same plugin twice, it's not an error
(because one can load one plugin by name and then install soname for the rest).
But Federated and FederatedX are different plugins, despite having the same name.

Now plugin_add() only considers two plugins identical if their names are the same
string (compared as pointers). Otherwise it reports an error.,
This commit is contained in:
Sergei Golubchik
2014-08-06 14:02:05 +02:00
parent 071a14c93d
commit 75f0f1708b
3 changed files with 31 additions and 2 deletions

View File

@ -0,0 +1,5 @@
install soname 'ha_federated';
install soname 'ha_federated';
install soname 'ha_federatedx';
ERROR HY000: Function 'FEDERATED' already exists
uninstall soname 'ha_federated';