summaryrefslogtreecommitdiff
path: root/ndb/src/ndbapi
diff options
context:
space:
mode:
authorunknown <joreland@mysql.com>2005-01-12 13:33:04 +0100
committerunknown <joreland@mysql.com>2005-01-12 13:33:04 +0100
commit124bc850d59db4308644143f022a5630d57b101f (patch)
tree2bbe96e57590ce264e00473bd59df8da2f794367 /ndb/src/ndbapi
parentce2f345a7d33d2864da5050cc0b00cb6ae4e5312 (diff)
downloadmariadb-git-124bc850d59db4308644143f022a5630d57b101f.tar.gz
ndb - Fix init of replica/frag count in ndb api
ndb/src/ndbapi/NdbDictionaryImpl.cpp: Fix init of replica/frag count
Diffstat (limited to 'ndb/src/ndbapi')
-rw-r--r--ndb/src/ndbapi/NdbDictionaryImpl.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/ndb/src/ndbapi/NdbDictionaryImpl.cpp b/ndb/src/ndbapi/NdbDictionaryImpl.cpp
index d6d8fc5215f..a63aad930dd 100644
--- a/ndb/src/ndbapi/NdbDictionaryImpl.cpp
+++ b/ndb/src/ndbapi/NdbDictionaryImpl.cpp
@@ -1349,8 +1349,9 @@ NdbDictInterface::parseTableInfo(NdbTableImpl ** ret,
if(tableDesc.FragmentDataLen > 0)
{
int i;
- Uint32 fragCount = tableDesc.FragmentData[0];
- Uint32 replicaCount = tableDesc.FragmentData[1];
+ Uint32 replicaCount = tableDesc.FragmentData[0];
+ Uint32 fragCount = tableDesc.FragmentData[1];
+
impl->m_replicaCount = replicaCount;
impl->m_fragmentCount = fragCount;
@@ -1359,9 +1360,6 @@ NdbDictInterface::parseTableInfo(NdbTableImpl ** ret,
impl->m_fragments.push_back(tableDesc.FragmentData[i+2]);
}
- impl->m_replicaCount = replicaCount;
- impl->m_fragmentCount = fragCount;
-
Uint32 topBit = (1 << 31);
for(int i = 31; i>=0; i--){
if((fragCount & topBit) != 0)