BUG#21960: Unbalanced data in MySQL Cluster 5.1 for number of node groups > 1

Fixed bad initialisation of default_node_group, failed to take into
account fact that first node group is set to zero
parent 183f0286
......@@ -6610,6 +6610,11 @@ void Dbdih::execCREATE_FRAGMENTATION_REQ(Signal * signal)
Uint16 next_replica_node[MAX_NDB_NODES];
memset(next_replica_node,0,sizeof(next_replica_node));
Uint32 default_node_group= c_nextNodeGroup;
/**
* Default starts at zero, so we must adjust for this by
* increasing default_node_group already here.
*/
inc_node_or_group(default_node_group, cnoOfNodeGroups);
for(Uint32 fragNo = 0; fragNo < noOfFragments; fragNo++)
{
jam();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment