mirror of
https://github.com/MariaDB/server.git
synced 2025-01-31 19:11:46 +01:00
ndb -
fix testprogam if only 1 node group
This commit is contained in:
parent
274e35c4d6
commit
2abc5e2f77
1 changed files with 8 additions and 2 deletions
|
@ -694,7 +694,10 @@ runBug18612(NDBT_Context* ctx, NDBT_Step* step){
|
|||
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 @@ runBug18612SR(NDBT_Context* ctx, NDBT_Step* step){
|
|||
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;
|
||||
|
|
Loading…
Add table
Reference in a new issue