summaryrefslogtreecommitdiff
path: root/ndb/test/src
diff options
context:
space:
mode:
authorjonas@perch.ndb.mysql.com <>2006-03-31 11:39:35 +0200
committerjonas@perch.ndb.mysql.com <>2006-03-31 11:39:35 +0200
commit96075f47f602c87d8db92e33c789013ca3d10c83 (patch)
treec1b0170ac891cbe345616a52411822c0787b38e3 /ndb/test/src
parentaa43e56b112b8afde201330af8a4fce2c89fed37 (diff)
downloadmariadb-git-96075f47f602c87d8db92e33c789013ca3d10c83.tar.gz
ndb - bug#16447
correct return value in check_cm_cmregreq
Diffstat (limited to 'ndb/test/src')
-rw-r--r--ndb/test/src/NdbRestarts.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/ndb/test/src/NdbRestarts.cpp b/ndb/test/src/NdbRestarts.cpp
index eea4af437c4..8465caaab48 100644
--- a/ndb/test/src/NdbRestarts.cpp
+++ b/ndb/test/src/NdbRestarts.cpp
@@ -445,8 +445,7 @@ int twoNodeFailure(NdbRestarter& _restarter,
<< ") secs " << endl;
NdbSleep_SecSleep(seconds);
- randomId = (rand() % _restarter.getNumDbNodes());
- nodeId = _restarter.getDbNodeId(randomId);
+ nodeId = _restarter.getRandomNodeOtherNodeGroup(nodeId, rand());
g_info << _restart->m_name << ": node = "<< nodeId << endl;
CHECK(_restarter.insertErrorInNode(nodeId, 9999) == 0,