Commit 47a3ddcf authored by unknown's avatar unknown
Browse files

Merge joreland@bk-internal.mysql.com:/home/bk/mysql-5.1

into  perch.ndb.mysql.com:/home/jonas/src/mysql-5.1

parents 46455397 cf61f514
Loading
Loading
Loading
Loading
+12 −1
Original line number Diff line number Diff line
@@ -198,7 +198,18 @@ Suma::execSTTOR(Signal* signal) {
    }
    
    if(!m_active_buckets.isclear())
      m_gcp_complete_rep_count = 1; // I contribute 1 gcp complete rep
    {
      NdbNodeBitmask tmp;
      Uint32 bucket = 0;
      while (m_active_buckets.find(bucket) != Bucket_mask::NotFound)
      {
	tmp.set(get_responsible_node(bucket, c_nodes_in_nodegroup_mask));
	bucket++;
      }
      
      ndbassert(tmp.get(getOwnNodeId()));
      m_gcp_complete_rep_count = tmp.count();// I contribute 1 gcp complete rep
    }
    else
      m_gcp_complete_rep_count = 0; // I contribute 1 gcp complete rep