List:Commits« Previous MessageNext Message »
From:jonas Date:April 3 2006 6:43pm
Subject:bk commit into 4.1 tree (jonas:1.2491)
View as plain text  
Below is the list of changes that have just been committed into a local
4.1 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.2491 06/04/03 20:43:14 jonas@stripped +1 -0
  ndb -
    fix testprogam if only 1 node group

  ndb/test/ndbapi/testNodeRestart.cpp
    1.21 06/04/03 20:43:12 jonas@stripped +8 -2
    fix testprogam if only 1 node group

# 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:	perch.ndb.mysql.com
# Root:	/home/jonas/src/41-work

--- 1.20/ndb/test/ndbapi/testNodeRestart.cpp	2006-04-03 12:09:48 +02:00
+++ 1.21/ndb/test/ndbapi/testNodeRestart.cpp	2006-04-03 20:43:12 +02:00
@@ -694,7 +694,10 @@
     for (Uint32 i = 0; i<cnt/2; i++)
     {
       do { 
-	node1 = restarter.getRandomNodeOtherNodeGroup(node1, rand());
+	int tmp = restarter.getRandomNodeOtherNodeGroup(node1, rand());
+	if (tmp == -1)
+	  break;
+	node1 = tmp;
       } while(nodesmask.get(node1));
       
       partition0[i] = node1;
@@ -797,7 +800,10 @@
     for (Uint32 i = 0; i<cnt/2; i++)
     {
       do { 
-	node1 = restarter.getRandomNodeOtherNodeGroup(node1, rand());
+	int tmp = restarter.getRandomNodeOtherNodeGroup(node1, rand());
+	if (tmp == -1)
+	  break;
+	node1 = tmp;
       } while(nodesmask.get(node1));
       
       partition0[i] = node1;
Thread
bk commit into 4.1 tree (jonas:1.2491)jonas3 Apr