diff options
author | jonas@perch.ndb.mysql.com <> | 2006-03-31 11:39:35 +0200 |
---|---|---|
committer | jonas@perch.ndb.mysql.com <> | 2006-03-31 11:39:35 +0200 |
commit | 96075f47f602c87d8db92e33c789013ca3d10c83 (patch) | |
tree | c1b0170ac891cbe345616a52411822c0787b38e3 /ndb/test/src | |
parent | aa43e56b112b8afde201330af8a4fce2c89fed37 (diff) | |
download | mariadb-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.cpp | 3 |
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, |