mirror of
https://github.com/MariaDB/server.git
synced 2025-01-20 14:02:32 +01:00
ndb - Fix init of replica/frag count in ndb api
ndb/src/ndbapi/NdbDictionaryImpl.cpp: Fix init of replica/frag count
This commit is contained in:
parent
ce2f345a7d
commit
124bc850d5
1 changed files with 3 additions and 5 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue