From 96075f47f602c87d8db92e33c789013ca3d10c83 Mon Sep 17 00:00:00 2001 From: "jonas@perch.ndb.mysql.com" <> Date: Fri, 31 Mar 2006 11:39:35 +0200 Subject: ndb - bug#16447 correct return value in check_cm_cmregreq --- ndb/test/src/NdbRestarts.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'ndb/test/src') 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, -- cgit v1.2.1