summaryrefslogtreecommitdiff
path: root/sql/sql_plugin.cc
diff options
context:
space:
mode:
authorGeorgi Kodinov <kgeorge@mysql.com>2008-05-30 13:21:45 +0300
committerGeorgi Kodinov <kgeorge@mysql.com>2008-05-30 13:21:45 +0300
commitea120c56f573c1448c54479c7904ada891320ca5 (patch)
tree7ad2cfaf054cdbacd2bfb1585ce86468306279d7 /sql/sql_plugin.cc
parent14aef9781ad64ab89e1bf61ad8a09565f14f5147 (diff)
downloadmariadb-git-ea120c56f573c1448c54479c7904ada891320ca5.tar.gz
Bug#37069: Make federated disabled by default
The federated storage engine is now disabled by default. mysql-test-run.pl is updated to enable it whenever it's required and available. mysql-test/lib/mtr_cases.pl: Bug#37069: mysql-test-run.pl automatically enables federated for federated related tests sql/sql_plugin.cc: Bug#37069: federated is disabled by default
Diffstat (limited to 'sql/sql_plugin.cc')
-rw-r--r--sql/sql_plugin.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/sql/sql_plugin.cc b/sql/sql_plugin.cc
index 811b82ebe05..0fe79a8945d 100644
--- a/sql/sql_plugin.cc
+++ b/sql/sql_plugin.cc
@@ -1137,9 +1137,10 @@ int plugin_init(int *argc, char **argv, int flags)
{
for (plugin= *builtins; plugin->info; plugin++)
{
- /* by default, only ndbcluster is disabled */
+ /* by default, ndbcluster and federated are disabled */
def_enabled=
- my_strcasecmp(&my_charset_latin1, plugin->name, "NDBCLUSTER") != 0;
+ my_strcasecmp(&my_charset_latin1, plugin->name, "NDBCLUSTER") != 0 &&
+ my_strcasecmp(&my_charset_latin1, plugin->name, "FEDERATED") != 0;
bzero(&tmp, sizeof(tmp));
tmp.plugin= plugin;
tmp.name.str= (char *)plugin->name;