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
0c5c9e17
Commit
0c5c9e17
authored
Jul 06, 2006
by
mskold@linux.site
Browse files
Options
Browse Files
Download
Plain Diff
Merge mskold@bk-internal.mysql.com:/home/bk/mysql-5.1
into mysql.com:/home/marty/MySQL/mysql-5.1
parents
58c27909
75a6a16a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
0 deletions
+25
-0
storage/ndb/src/kernel/blocks/qmgr/Qmgr.hpp
storage/ndb/src/kernel/blocks/qmgr/Qmgr.hpp
+1
-0
storage/ndb/src/kernel/blocks/qmgr/QmgrInit.cpp
storage/ndb/src/kernel/blocks/qmgr/QmgrInit.cpp
+1
-0
storage/ndb/src/kernel/blocks/qmgr/QmgrMain.cpp
storage/ndb/src/kernel/blocks/qmgr/QmgrMain.cpp
+23
-0
No files found.
storage/ndb/src/kernel/blocks/qmgr/Qmgr.hpp
View file @
0c5c9e17
...
...
@@ -248,6 +248,7 @@ private:
void
execAPI_FAILCONF
(
Signal
*
signal
);
void
execREAD_NODESREQ
(
Signal
*
signal
);
void
execSET_VAR_REQ
(
Signal
*
signal
);
void
execAPI_FAILREQ
(
Signal
*
signal
);
void
execREAD_NODESREF
(
Signal
*
signal
);
void
execREAD_NODESCONF
(
Signal
*
signal
);
...
...
storage/ndb/src/kernel/blocks/qmgr/QmgrInit.cpp
View file @
0c5c9e17
...
...
@@ -81,6 +81,7 @@ Qmgr::Qmgr(Block_context& ctx)
addRecSignal
(
GSN_API_REGREQ
,
&
Qmgr
::
execAPI_REGREQ
);
addRecSignal
(
GSN_API_VERSION_REQ
,
&
Qmgr
::
execAPI_VERSION_REQ
);
addRecSignal
(
GSN_DISCONNECT_REP
,
&
Qmgr
::
execDISCONNECT_REP
);
addRecSignal
(
GSN_API_FAILREQ
,
&
Qmgr
::
execAPI_FAILREQ
);
addRecSignal
(
GSN_API_FAILCONF
,
&
Qmgr
::
execAPI_FAILCONF
);
addRecSignal
(
GSN_READ_NODESREQ
,
&
Qmgr
::
execREAD_NODESREQ
);
addRecSignal
(
GSN_SET_VAR_REQ
,
&
Qmgr
::
execSET_VAR_REQ
);
...
...
storage/ndb/src/kernel/blocks/qmgr/QmgrMain.cpp
View file @
0c5c9e17
...
...
@@ -2340,6 +2340,8 @@ void Qmgr::sendApiFailReq(Signal* signal, Uint16 failedNodeNo)
ndbrequire
(
failedNodePtr
.
p
->
failState
==
NORMAL
);
failedNodePtr
.
p
->
failState
=
WAITING_FOR_FAILCONF1
;
NodeReceiverGroup
rg
(
QMGR
,
c_clusterNodes
);
sendSignal
(
rg
,
GSN_API_FAILREQ
,
signal
,
2
,
JBA
);
sendSignal
(
DBTC_REF
,
GSN_API_FAILREQ
,
signal
,
2
,
JBA
);
sendSignal
(
DBDICT_REF
,
GSN_API_FAILREQ
,
signal
,
2
,
JBA
);
sendSignal
(
SUMA_REF
,
GSN_API_FAILREQ
,
signal
,
2
,
JBA
);
...
...
@@ -2363,6 +2365,27 @@ void Qmgr::sendApiFailReq(Signal* signal, Uint16 failedNodeNo)
CloseComReqConf
::
SignalLength
,
JBA
);
}
//Qmgr::sendApiFailReq()
void
Qmgr
::
execAPI_FAILREQ
(
Signal
*
signal
)
{
jamEntry
();
NodeRecPtr
failedNodePtr
;
failedNodePtr
.
i
=
signal
->
theData
[
0
];
// signal->theData[1] == QMGR_REF
ptrCheckGuard
(
failedNodePtr
,
MAX_NODES
,
nodeRec
);
ndbrequire
(
getNodeInfo
(
failedNodePtr
.
i
).
getType
()
!=
NodeInfo
::
DB
);
// ignore if api not active
if
(
failedNodePtr
.
p
->
phase
!=
ZAPI_ACTIVE
)
return
;
signal
->
theData
[
0
]
=
NDB_LE_Disconnected
;
signal
->
theData
[
1
]
=
failedNodePtr
.
i
;
sendSignal
(
CMVMI_REF
,
GSN_EVENT_REP
,
signal
,
2
,
JBB
);
node_failed
(
signal
,
failedNodePtr
.
i
);
}
void
Qmgr
::
execAPI_FAILCONF
(
Signal
*
signal
)
{
NodeRecPtr
failedNodePtr
;
...
...
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