Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
78804c21
Commit
78804c21
authored
Jan 12, 2005
by
joreland@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ndb - Fix init of replica/frag count in ndb api
parent
fadd2bea
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
ndb/src/ndbapi/NdbDictionaryImpl.cpp
ndb/src/ndbapi/NdbDictionaryImpl.cpp
+3
-5
No files found.
ndb/src/ndbapi/NdbDictionaryImpl.cpp
View file @
78804c21
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment