List:Commits« Previous MessageNext Message »
From:msvensson Date:April 24 2006 12:00pm
Subject:bk commit into 5.0 tree (msvensson:1.2182)
View as plain text  
Below is the list of changes that have just been committed into a local
5.0 repository of msvensson. When msvensson does a push these changes will
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html

ChangeSet
  1.2182 06/04/24 12:00:11 msvensson@neptunus.(none) +2 -0
  Make have_ndb.in portable

  mysql-test/mysql-test-run.pl
    1.93 06/04/24 12:00:07 msvensson@neptunus.(none) +3 -2
    Move initializetion of NDB_STATUS_OK and only do it once in init part of scripot. This
will make it possible to  set 
    it to NO if we detect that cluster can't be started.

  mysql-test/include/have_ndb.inc
    1.8 06/04/24 12:00:07 msvensson@neptunus.(none) +8 -1
    Remove the "exec test" and instead use the portable way to
    check an environment variable using "eval select". The value of 
    $NDB_STATUS_OK will this be replace by mysqltest and the query 
    "select "YES" and ndb_status_ok" will be sent to the server and back.

# This is a BitKeeper patch.  What follows are the unified diffs for the
# set of deltas contained in the patch.  The rest of the patch, the part
# that BitKeeper cares about, is below these diffs.
# User:	msvensson
# Host:	neptunus.(none)
# Root:	/home/msvensson/mysql/mysql-5.0-maint

--- 1.92/mysql-test/mysql-test-run.pl	2006-04-24 11:26:37 +02:00
+++ 1.93/mysql-test/mysql-test-run.pl	2006-04-24 12:00:07 +02:00
@@ -1175,6 +1175,7 @@
   $ENV{'MYSQL_TCP_PORT'}=     3306;
 
   $ENV{'NDBCLUSTER_PORT'}=    $opt_ndbcluster_port;
+  $ENV{'NDB_STATUS_OK'}=      "YES";
 
   $ENV{'IM_PATH_PID'}=        $instance_manager->{path_pid};
   $ENV{'IM_PORT'}=            $instance_manager->{port};
@@ -1661,6 +1662,7 @@
       mtr_report("ndbcluster_install failed, continuing without cluster");
       $opt_with_ndbcluster= 0;
       $flag_ndb_status_ok= 0;
+      $ENV{'NDB_STATUS_OK'}= "NO";
     }
     else
     {
@@ -1682,7 +1684,7 @@
   my $init_db_sql_tmp= "/tmp/init_db.sql$$";
   my $args;
 
-  mtr_report("Installing \u$type Databases");
+  mtr_report("Installing \u$type Database");
 
   open(IN, $init_db_sql)
     or mtr_error("Can't open $init_db_sql: $!");
@@ -2935,7 +2937,6 @@
   $ENV{'CHARSETSDIR'}=              $path_charsetsdir;
   $ENV{'MYSQL_MY_PRINT_DEFAULTS'}=  $exe_my_print_defaults;
 
-  $ENV{'NDB_STATUS_OK'}=            $flag_ndb_status_ok;
   $ENV{'NDB_MGM'}=                  $exe_ndb_mgm;
   $ENV{'NDB_BACKUP_DIR'}=           $path_ndb_data_dir;
   $ENV{'NDB_DATA_DIR'}=             $path_ndb_data_dir;

--- 1.7/mysql-test/include/have_ndb.inc	2005-02-07 18:00:59 +01:00
+++ 1.8/mysql-test/include/have_ndb.inc	2006-04-24 12:00:07 +02:00
@@ -1,6 +1,13 @@
---exec test x$NDB_STATUS_OK = x1
+# Check that server is compiled and started with support for NDB
 -- require r/have_ndb.require
 disable_query_log;
 show variables like "have_ndbcluster";
 enable_query_log;
+
+# Check that NDB is installed and known to be working
+-- require r/have_ndb_status_ok.require
+disable_query_log;
+eval select "$NDB_STATUS_OK" as ndb_status_ok;
+enable_query_log;
+
 
Thread
bk commit into 5.0 tree (msvensson:1.2182)msvensson24 Apr