List:Commits« Previous MessageNext Message »
From:jonas Date:June 8 2006 11:55am
Subject:bk commit into 5.0 tree (jonas:1.2174)
View as plain text  
Below is the list of changes that have just been committed into a local
5.0 repository of jonas. When jonas 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.2174 06/06/08 13:55:10 jonas@stripped +1 -0
  ndb - atrt
      1) be backward compatible with --api
      2) put FileSystemDir in clusterdir by default

  ndb/test/run-test/setup.cpp
    1.7 06/06/08 13:55:04 jonas@stripped +12 -3
    1) be backward compatible with --api
    2) put FileSystemDir in clusterdir by default

# 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:	jonas
# Host:	mc02.ndb.mysql.com
# Root:	/space/jonas/mysql-5.0-wl2809

--- 1.6/ndb/test/run-test/setup.cpp	Wed Jun  7 16:10:44 2006
+++ 1.7/ndb/test/run-test/setup.cpp	Thu Jun  8 13:55:04 2006
@@ -95,6 +95,7 @@
       { atrt_process::AP_NDB_MGMD, "--ndb_mgmd=", 0 },
       { atrt_process::AP_NDBD, "--ndbd=", 0 },
       { atrt_process::AP_NDB_API, "--ndbapi=", 0 },
+      { atrt_process::AP_NDB_API, "--api=", 0 },
       { atrt_process::AP_MYSQLD, "--mysqld=", 0 },
       { atrt_process::AP_ALL, 0, 0}
     };
@@ -640,7 +641,7 @@
     const char * val;
     if (host->m_processes[i]->m_options.m_loaded.get(name, &val))
     {
-      if (atoi(val) == port)
+      if ((Uint32)atoi(val) == port)
 	return 0;
     }
   }
@@ -669,11 +670,19 @@
     opts.m_generated.put(name, buf);
     return true;
   }
-  else if (strcmp(name, "--datadir=") == 0 ||
-	   strcmp(name, "--FileSystemPath=") == 0)
+  else if (strcmp(name, "--datadir=") == 0)
   {
     opts.m_loaded.put(name, proc.m_proc.m_cwd.c_str());
     opts.m_generated.put(name, proc.m_proc.m_cwd.c_str());
+    return true;
+  }
+  else if (strcmp(name, "--FileSystemPath=") == 0)
+  {
+    BaseString dir;
+    dir.append(proc.m_host->m_basedir);
+    dir.append(proc.m_cluster->m_dir);
+    opts.m_loaded.put(name, dir.c_str());
+    opts.m_generated.put(name, dir.c_str());
     return true;
   }
   else if (strcmp(name, "--socket=") == 0)
Thread
bk commit into 5.0 tree (jonas:1.2174)jonas8 Jun