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
63aef9d5
Commit
63aef9d5
authored
Sep 12, 2005
by
tulin@dl145b.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Corrected construct of faked Node fail signals in ndb SignalSender
parent
bdc33e23
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
5 deletions
+10
-5
ndb/src/mgmsrv/MgmtSrvr.cpp
ndb/src/mgmsrv/MgmtSrvr.cpp
+1
-4
ndb/src/ndbapi/SignalSender.cpp
ndb/src/ndbapi/SignalSender.cpp
+9
-1
No files found.
ndb/src/mgmsrv/MgmtSrvr.cpp
View file @
63aef9d5
...
...
@@ -2501,10 +2501,7 @@ MgmtSrvr::startBackup(Uint32& backupId, int waitCompleted)
case
GSN_NODE_FAILREP
:{
const
NodeFailRep
*
const
rep
=
CAST_CONSTPTR
(
NodeFailRep
,
signal
->
getDataPtr
());
#ifdef VM_TRACE
ndbout_c
(
"Node %d failed"
,
rep
->
failNo
);
#endif
if
(
rep
->
failNo
==
nodeId
||
if
(
NodeBitmask
::
get
(
rep
->
theNodes
,
nodeId
)
||
waitCompleted
==
1
)
return
1326
;
// wait for next signal
...
...
ndb/src/ndbapi/SignalSender.cpp
View file @
63aef9d5
...
...
@@ -250,14 +250,22 @@ SignalSender::execNodeStatus(void* signalSender,
// node shutdown complete
s
->
header
.
theVerId_signalNumber
=
GSN_NF_COMPLETEREP
;
NFCompleteRep
*
rep
=
(
NFCompleteRep
*
)
s
->
getDataPtrSend
();
rep
->
blockNo
=
0
;
rep
->
nodeId
=
0
;
rep
->
failedNodeId
=
nodeId
;
rep
->
unused
=
0
;
rep
->
from
=
0
;
}
else
{
// node failure
s
->
header
.
theVerId_signalNumber
=
GSN_NODE_FAILREP
;
NodeFailRep
*
rep
=
(
NodeFailRep
*
)
s
->
getDataPtrSend
();
rep
->
failNo
=
nodeId
;
rep
->
failNo
=
0
;
rep
->
masterNodeId
=
0
;
rep
->
noOfNodes
=
1
;
NodeBitmask
::
clear
(
rep
->
theNodes
);
NodeBitmask
::
set
(
rep
->
theNodes
,
nodeId
);
}
ss
->
m_jobBuffer
.
push_back
(
s
);
...
...
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