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
040fcb2d
Commit
040fcb2d
authored
Sep 03, 2004
by
joreland@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed initialization of trans id
parent
eff2fa5e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
ndb/src/ndbapi/Ndbif.cpp
ndb/src/ndbapi/Ndbif.cpp
+8
-6
No files found.
ndb/src/ndbapi/Ndbif.cpp
View file @
040fcb2d
...
@@ -185,9 +185,11 @@ Ndb::executeMessage(void* NdbObject,
...
@@ -185,9 +185,11 @@ Ndb::executeMessage(void* NdbObject,
void
Ndb
::
connected
(
Uint32
ref
)
void
Ndb
::
connected
(
Uint32
ref
)
{
{
theMyRef
=
ref
;
theMyRef
=
ref
;
theNode
=
refToNode
(
theMyRef
);
theNode
=
refToNode
(
ref
);
if
(
theNdbBlockNumber
>=
0
)
Uint64
tBlockNo
=
refToBlock
(
ref
);
if
(
theNdbBlockNumber
>=
0
){
assert
(
theMyRef
==
numberToRef
(
theNdbBlockNumber
,
theNode
));
assert
(
theMyRef
==
numberToRef
(
theNdbBlockNumber
,
theNode
));
}
TransporterFacade
*
theFacade
=
TransporterFacade
::
instance
();
TransporterFacade
*
theFacade
=
TransporterFacade
::
instance
();
int
i
;
int
i
;
...
@@ -198,11 +200,11 @@ void Ndb::connected(Uint32 ref)
...
@@ -198,11 +200,11 @@ void Ndb::connected(Uint32 ref)
theNoOfDBnodes
++
;
theNoOfDBnodes
++
;
}
}
}
}
theFirstTransId
=
((
Uint64
)
t
heNdbBlockNumber
<<
52
)
+
theFirstTransId
=
((
Uint64
)
t
BlockNo
<<
52
)
+
((
Uint64
)
theNode
<<
40
);
((
Uint64
)
theNode
<<
40
);
theFirstTransId
+=
theFacade
->
m_max_trans_id
;
theFirstTransId
+=
theFacade
->
m_max_trans_id
;
// assert(0);
// assert(0);
DBUG_PRINT
(
"info"
,(
"connected with ref=%x, id=%d, no_db_nodes=%d, first_trans_id=%
d
"
,
DBUG_PRINT
(
"info"
,(
"connected with ref=%x, id=%d, no_db_nodes=%d, first_trans_id=%
lx
"
,
theMyRef
,
theMyRef
,
theNode
,
theNode
,
theNoOfDBnodes
,
theNoOfDBnodes
,
...
...
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