MySQL Lists are EOL. Please join:

List:Commits« Previous MessageNext Message »
From:Georgi Kodinov Date:June 3 2008 1:14pm
Subject:bzr push into mysql-5.0 branch (kgeorge:2633) Bug#37069
View as plain text  
 2633 Georgi Kodinov	2008-06-03
      Bug#37069 (5.0): implement --skip-federated
added:
  mysql-test/r/federated_disabled.result
  mysql-test/t/federated_disabled-master.opt
  mysql-test/t/federated_disabled.test
modified:
  sql/mysqld.cc

=== added file 'mysql-test/r/federated_disabled.result'

=== added file 'mysql-test/t/federated_disabled-master.opt'
--- a/mysql-test/t/federated_disabled-master.opt	1970-01-01 00:00:00 +0000
+++ b/mysql-test/t/federated_disabled-master.opt	2008-06-03 10:12:37 +0000
@@ -0,0 +1 @@
+--skip-federated

=== added file 'mysql-test/t/federated_disabled.test'
--- a/mysql-test/t/federated_disabled.test	1970-01-01 00:00:00 +0000
+++ b/mysql-test/t/federated_disabled.test	2008-06-03 10:12:37 +0000
@@ -0,0 +1,3 @@
+source include/federated.inc;
+
+SHOW VARIABLES LIKE 'have_federated_engine';

=== modified file 'sql/mysqld.cc'
--- a/sql/mysqld.cc	2008-03-29 14:12:23 +0000
+++ b/sql/mysqld.cc	2008-06-03 10:12:37 +0000
@@ -328,7 +328,7 @@ static bool lower_case_table_names_used=
 static bool volatile select_thread_in_use, signal_thread_in_use;
 static bool volatile ready_to_exit;
 static my_bool opt_debugging= 0, opt_external_locking= 0, opt_console= 0;
-static my_bool opt_bdb, opt_isam, opt_ndbcluster, opt_merge;
+static my_bool opt_bdb, opt_isam, opt_ndbcluster, opt_merge, opt_federated;
 static my_bool opt_short_log_format= 0;
 static uint kill_cached_threads, wake_thread;
 static ulong killed_threads, thread_created;
@@ -4989,7 +4989,8 @@ enum options_mysqld
   OPT_INNODB_ROLLBACK_ON_TIMEOUT,
   OPT_SECURE_FILE_PRIV,
   OPT_KEEP_FILES_ON_CREATE,
-  OPT_INNODB_ADAPTIVE_HASH_INDEX
+  OPT_INNODB_ADAPTIVE_HASH_INDEX,
+  OPT_FEDERATED
 };
 
 
@@ -5175,6 +5176,9 @@ Disable with --skip-external-locking.",
    0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
   {"flush", OPT_FLUSH, "Flush tables to disk between SQL commands.", 0, 0, 0,
    GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0},
+  {"federated", OPT_FEDERATED, "Enable Federated storage engine. Disable with \
+--skip-federated.",
+   (gptr*) &opt_federated, (gptr*) &opt_federated, 0, GET_BOOL, NO_ARG, 1, 0, 0, 0, 0, 0},
   /* We must always support the next option to make scripts like mysqltest
      easier to do */
   {"gdb", OPT_DEBUGGING,
@@ -7322,6 +7326,14 @@ get_one_option(int optid, const struct m
     else
       have_merge_db= SHOW_OPTION_DISABLED;
     break;
+#ifdef HAVE_FEDERATED_DB
+  case OPT_FEDERATED:
+    if (opt_federated)
+      have_federated_db= SHOW_OPTION_YES;
+    else
+      have_federated_db= SHOW_OPTION_DISABLED;
+    break;
+#endif
 #ifdef HAVE_BERKELEY_DB
   case OPT_BDB_NOSYNC:
     /* Deprecated option */

Thread
bzr push into mysql-5.0 branch (kgeorge:2633) Bug#37069Georgi Kodinov3 Jun