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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
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
Hide 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
...
...
@@ -87,7 +87,7 @@ Ndb::init(int aMaxNoOfTransactions)
}
//if
theNdbBlockNumber
=
tBlockNo
;
theFacade
->
unlock_mutex
();
theDictionary
->
setTransporter
(
this
,
theFacade
);
...
...
@@ -185,10 +185,12 @@ Ndb::executeMessage(void* NdbObject,
void
Ndb
::
connected
(
Uint32
ref
)
{
theMyRef
=
ref
;
theNode
=
refToNode
(
theMyRef
);
if
(
theNdbBlockNumber
>=
0
)
theNode
=
refToNode
(
ref
);
Uint64
tBlockNo
=
refToBlock
(
ref
);
if
(
theNdbBlockNumber
>=
0
){
assert
(
theMyRef
==
numberToRef
(
theNdbBlockNumber
,
theNode
));
}
TransporterFacade
*
theFacade
=
TransporterFacade
::
instance
();
int
i
;
theNoOfDBnodes
=
0
;
...
...
@@ -198,11 +200,11 @@ void Ndb::connected(Uint32 ref)
theNoOfDBnodes
++
;
}
}
theFirstTransId
=
((
Uint64
)
t
heNdbBlockNumber
<<
52
)
+
theFirstTransId
=
((
Uint64
)
t
BlockNo
<<
52
)
+
((
Uint64
)
theNode
<<
40
);
theFirstTransId
+=
theFacade
->
m_max_trans_id
;
// 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
,
theNode
,
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