Commit 6afe69b0 authored by unknown's avatar unknown

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


storage/ndb/src/kernel/blocks/dbdih/DbdihMain.cpp:
  Fixed bad initialisation of default_node_group, failed to take into
  account fact that first node group is set to zero
parent 2a565179
...@@ -6610,6 +6610,11 @@ void Dbdih::execCREATE_FRAGMENTATION_REQ(Signal * signal) ...@@ -6610,6 +6610,11 @@ void Dbdih::execCREATE_FRAGMENTATION_REQ(Signal * signal)
Uint16 next_replica_node[MAX_NDB_NODES]; Uint16 next_replica_node[MAX_NDB_NODES];
memset(next_replica_node,0,sizeof(next_replica_node)); memset(next_replica_node,0,sizeof(next_replica_node));
Uint32 default_node_group= c_nextNodeGroup; 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++) for(Uint32 fragNo = 0; fragNo < noOfFragments; fragNo++)
{ {
jam(); 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