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
bb8dd31b
Commit
bb8dd31b
authored
Apr 11, 2005
by
joreland@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ndb - replication bug fix
Fix gci reply on TC_COMMITREQ (prefered way of mysqld)
parent
738b9f9b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
5 deletions
+9
-5
ndb/include/kernel/signaldata/TcCommit.hpp
ndb/include/kernel/signaldata/TcCommit.hpp
+2
-1
ndb/src/kernel/blocks/dbtc/DbtcMain.cpp
ndb/src/kernel/blocks/dbtc/DbtcMain.cpp
+6
-4
ndb/src/ndbapi/NdbTransaction.cpp
ndb/src/ndbapi/NdbTransaction.cpp
+1
-0
No files found.
ndb/include/kernel/signaldata/TcCommit.hpp
View file @
bb8dd31b
...
...
@@ -36,7 +36,7 @@ class TcCommitConf {
friend
class
NdbTransaction
;
public:
STATIC_CONST
(
SignalLength
=
3
);
STATIC_CONST
(
SignalLength
=
4
);
private:
/**
...
...
@@ -49,6 +49,7 @@ private:
Uint32
transId1
;
Uint32
transId2
;
Uint32
gci
;
};
class
TcCommitRef
{
...
...
ndb/src/kernel/blocks/dbtc/DbtcMain.cpp
View file @
bb8dd31b
...
...
@@ -4688,8 +4688,9 @@ void Dbtc::sendApiCommit(Signal* signal)
}
commitConf
->
transId1
=
regApiPtr
->
transid
[
0
];
commitConf
->
transId2
=
regApiPtr
->
transid
[
1
];
sendSignal
(
regApiPtr
->
ndbapiBlockref
,
GSN_TC_COMMITCONF
,
signal
,
3
,
JBB
);
commitConf
->
gci
=
regApiPtr
->
globalcheckpointid
;
sendSignal
(
regApiPtr
->
ndbapiBlockref
,
GSN_TC_COMMITCONF
,
signal
,
TcCommitConf
::
SignalLength
,
JBB
);
}
else
if
(
regApiPtr
->
returnsignal
==
RS_NO_RETURN
)
{
jam
();
}
else
{
...
...
@@ -5382,8 +5383,9 @@ void Dbtc::execTC_COMMITREQ(Signal* signal)
commitConf
->
apiConnectPtr
=
apiConnectPtr
;
commitConf
->
transId1
=
transId1
;
commitConf
->
transId2
=
transId2
;
sendSignal
(
apiBlockRef
,
GSN_TC_COMMITCONF
,
signal
,
3
,
JBB
);
commitConf
->
gci
=
0
;
sendSignal
(
apiBlockRef
,
GSN_TC_COMMITCONF
,
signal
,
TcCommitConf
::
SignalLength
,
JBB
);
regApiPtr
->
returnsignal
=
RS_NO_RETURN
;
releaseAbortResources
(
signal
);
...
...
ndb/src/ndbapi/NdbTransaction.cpp
View file @
bb8dd31b
...
...
@@ -1490,6 +1490,7 @@ NdbTransaction::receiveTC_COMMITCONF(const TcCommitConf * commitConf)
if
(
checkState_TransId
(
&
commitConf
->
transId1
)){
theCommitStatus
=
Committed
;
theCompletionStatus
=
CompletedSuccess
;
theGlobalCheckpointId
=
commitConf
->
gci
;
return
0
;
}
else
{
#ifdef NDB_NO_DROPPED_SIGNAL
...
...
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