MySQL Lists are EOL. Please join:

List:Commits« Previous MessageNext Message »
From:Georgi Kodinov Date:May 30 2008 10:22am
Subject:bzr commit into mysql-5.1 branch (kgeorge:2654) Bug#37069
View as plain text  
#At file:///home/kgeorge/mysql/bzr/disable_federated-5.1/

 2654 Georgi Kodinov	2008-05-30
      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.
modified:
  mysql-test/lib/mtr_cases.pl
  sql/sql_plugin.cc

per-file comments:
  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
=== modified file 'mysql-test/lib/mtr_cases.pl'
--- a/mysql-test/lib/mtr_cases.pl	2008-02-06 15:16:49 +0000
+++ b/mysql-test/lib/mtr_cases.pl	2008-05-30 10:21:45 +0000
@@ -773,6 +773,13 @@ sub collect_one_test_case($$$$$$$$$) {
 	if ( $::used_default_engine =~ /^innodb/i );
     }
 
+    #enable federated for this test
+    if ($tinfo->{'federated_test'})
+    {
+      push(@{$tinfo->{'master_opt'}}, "--loose-federated");
+      push(@{$tinfo->{'slave_opt'}}, "--loose-federated");
+    }
+
     if ( $tinfo->{'big_test'} and ! $::opt_big_test )
     {
       $tinfo->{'skip'}= 1;
@@ -891,6 +898,8 @@ our @tags=
  ["include/have_ndb_extra.inc", "ndb_extra", 1],
  ["include/ndb_master-slave.inc", "ndb_test", 1],
  ["require_manager", "require_manager", 1],
+ ["include/federated.inc", "federated_test", 1],
+ ["include/have_federated_db.inc", "federated_test", 1],
 );
 
 sub mtr_options_from_test_file($$) {

=== modified file 'sql/sql_plugin.cc'
--- a/sql/sql_plugin.cc	2008-03-28 16:43:13 +0000
+++ b/sql/sql_plugin.cc	2008-05-30 10:21:45 +0000
@@ -1137,9 +1137,10 @@ int plugin_init(int *argc, char **argv, 
   {
     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;

Thread
bzr commit into mysql-5.1 branch (kgeorge:2654) Bug#37069Georgi Kodinov30 May