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
ecedd8c6
Commit
ecedd8c6
authored
Jun 22, 2006
by
jonas@perch.ndb.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ndb - bug#18782
crash correct node in case of START_FRAGREF
parent
bbbb156e
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
33 additions
and
1 deletion
+33
-1
storage/ndb/include/kernel/signaldata/SystemError.hpp
storage/ndb/include/kernel/signaldata/SystemError.hpp
+2
-1
storage/ndb/src/kernel/blocks/dbdih/Dbdih.hpp
storage/ndb/src/kernel/blocks/dbdih/Dbdih.hpp
+1
-0
storage/ndb/src/kernel/blocks/dbdih/DbdihInit.cpp
storage/ndb/src/kernel/blocks/dbdih/DbdihInit.cpp
+3
-0
storage/ndb/src/kernel/blocks/dbdih/DbdihMain.cpp
storage/ndb/src/kernel/blocks/dbdih/DbdihMain.cpp
+20
-0
storage/ndb/src/kernel/blocks/ndbcntr/NdbcntrMain.cpp
storage/ndb/src/kernel/blocks/ndbcntr/NdbcntrMain.cpp
+7
-0
No files found.
storage/ndb/include/kernel/signaldata/SystemError.hpp
View file @
ecedd8c6
...
...
@@ -45,7 +45,8 @@ public:
CopyFragRefError
=
5
,
TestStopOnError
=
6
,
CopySubscriptionRef
=
7
,
CopySubscriberRef
=
8
CopySubscriberRef
=
8
,
StartFragRefError
=
9
};
Uint32
errorRef
;
...
...
storage/ndb/src/kernel/blocks/dbdih/Dbdih.hpp
View file @
ecedd8c6
...
...
@@ -683,6 +683,7 @@ private:
void
execGETGCIREQ
(
Signal
*
);
void
execDIH_RESTARTREQ
(
Signal
*
);
void
execSTART_RECCONF
(
Signal
*
);
void
execSTART_FRAGREF
(
Signal
*
);
void
execSTART_FRAGCONF
(
Signal
*
);
void
execADD_FRAGCONF
(
Signal
*
);
void
execADD_FRAGREF
(
Signal
*
);
...
...
storage/ndb/src/kernel/blocks/dbdih/DbdihInit.cpp
View file @
ecedd8c6
...
...
@@ -251,6 +251,9 @@ Dbdih::Dbdih(Block_context& ctx):
addRecSignal
(
GSN_CREATE_FRAGMENTATION_REQ
,
&
Dbdih
::
execCREATE_FRAGMENTATION_REQ
);
addRecSignal
(
GSN_START_FRAGREF
,
&
Dbdih
::
execSTART_FRAGREF
);
apiConnectRecord
=
0
;
connectRecord
=
0
;
fileRecord
=
0
;
...
...
storage/ndb/src/kernel/blocks/dbdih/DbdihMain.cpp
View file @
ecedd8c6
...
...
@@ -1106,6 +1106,26 @@ void Dbdih::execSTART_FRAGCONF(Signal* signal)
return
;
}
//Dbdih::execSTART_FRAGCONF()
void
Dbdih
::
execSTART_FRAGREF
(
Signal
*
signal
)
{
jamEntry
();
/**
* Kill starting node
*/
Uint32
errCode
=
signal
->
theData
[
1
];
Uint32
nodeId
=
signal
->
theData
[
2
];
SystemError
*
const
sysErr
=
(
SystemError
*
)
&
signal
->
theData
[
0
];
sysErr
->
errorCode
=
SystemError
::
StartFragRefError
;
sysErr
->
errorRef
=
reference
();
sysErr
->
data1
=
errCode
;
sysErr
->
data2
=
0
;
sendSignal
(
calcNdbCntrBlockRef
(
nodeId
),
GSN_SYSTEM_ERROR
,
signal
,
SystemError
::
SignalLength
,
JBB
);
return
;
}
//Dbdih::execSTART_FRAGCONF()
void
Dbdih
::
execSTART_MEREF
(
Signal
*
signal
)
{
jamEntry
();
...
...
storage/ndb/src/kernel/blocks/ndbcntr/NdbcntrMain.cpp
View file @
ecedd8c6
...
...
@@ -205,6 +205,13 @@ void Ndbcntr::execSYSTEM_ERROR(Signal* signal)
killingNode
,
data1
);
break
;
case
SystemError
:
:
StartFragRefError
:
BaseString
::
snprintf
(
buf
,
sizeof
(
buf
),
"Node %d killed this node because "
"it replied StartFragRef error code: %u."
,
killingNode
,
data1
);
break
;
case
SystemError
:
:
CopySubscriptionRef
:
BaseString
::
snprintf
(
buf
,
sizeof
(
buf
),
"Node %d killed this node because "
...
...
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