List:Commits« Previous MessageNext Message »
From:jonas Date:May 26 2006 12:25pm
Subject:bk commit into 5.0 tree (jonas:1.2164)
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.2164 06/05/26 14:25:29 jonas@eel.(none) +1 -0
  ndb -
    rename "api" to "ndbapi" in my.cnf
    fix bug with vector resize

  ndb/src/mgmsrv/InitConfigFileParser.cpp
    1.27 06/05/26 14:25:24 jonas@eel.(none) +9 -6
    rename "api" to "ndbapi" in my.cnf
    fix bug with vector resize

# 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:	eel.(none)
# Root:	/home/jonas/src/50-atrt

--- 1.26/ndb/src/mgmsrv/InitConfigFileParser.cpp	2005-10-12 15:30:57 +02:00
+++ 1.27/ndb/src/mgmsrv/InitConfigFileParser.cpp	2006-05-26 14:25:24 +02:00
@@ -800,6 +800,7 @@
   /**
    * Add ndbd, ndb_mgmd, api/mysqld
    */
+  size_t idx = options.size();
   {
     struct my_option opt;
     bzero(&opt, sizeof(opt));
@@ -809,7 +810,6 @@
     opt.var_type = GET_STR;
     opt.arg_type = REQUIRED_ARG;
     options.push_back(opt);
-    ndbd = &options.back();
 
     opt.name = "ndb_mgmd";
     opt.id = 256;
@@ -817,7 +817,6 @@
     opt.var_type = GET_STR;
     opt.arg_type = REQUIRED_ARG;
     options.push_back(opt);
-    ndb_mgmd = &options.back();
 
     opt.name = "mysqld";
     opt.id = 256;
@@ -825,20 +824,24 @@
     opt.var_type = GET_STR;
     opt.arg_type = REQUIRED_ARG;
     options.push_back(opt);
-    mysqld = &options.back();
 
-    opt.name = "api";
+    opt.name = "ndbapi";
     opt.id = 256;
     opt.value = (gptr*)malloc(sizeof(char*));
     opt.var_type = GET_STR;
     opt.arg_type = REQUIRED_ARG;
     options.push_back(opt);
-    api = &options.back();
 
     bzero(&opt, sizeof(opt));
     options.push_back(opt);
-  }
 
+    
+    ndbd = &options[idx];
+    ndb_mgmd = &options[idx+1];
+    mysqld = &options[idx+2];
+    api = &options[idx+3];
+  }
+  
   
   Context ctx(m_info, m_errstream); 
   const char *groups[]= { "cluster_config", 0 };
Thread
bk commit into 5.0 tree (jonas:1.2164)jonas29 May