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
cfc336a0
Commit
cfc336a0
authored
Jan 20, 2006
by
tomas@poseidon.ndb.mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge tulin@bk-internal.mysql.com:/home/bk/mysql-5.1-new
into poseidon.ndb.mysql.com:/home/tomas/mysql-5.1-new
parents
bbb5af9c
ee90c6d3
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
72 additions
and
5 deletions
+72
-5
storage/ndb/include/kernel/signaldata/SystemError.hpp
storage/ndb/include/kernel/signaldata/SystemError.hpp
+3
-2
storage/ndb/src/kernel/blocks/ndbcntr/NdbcntrMain.cpp
storage/ndb/src/kernel/blocks/ndbcntr/NdbcntrMain.cpp
+14
-0
storage/ndb/src/kernel/blocks/suma/Suma.cpp
storage/ndb/src/kernel/blocks/suma/Suma.cpp
+54
-3
storage/ndb/src/kernel/blocks/suma/Suma.hpp
storage/ndb/src/kernel/blocks/suma/Suma.hpp
+1
-0
No files found.
storage/ndb/include/kernel/signaldata/SystemError.hpp
View file @
cfc336a0
...
...
@@ -43,10 +43,11 @@ public:
enum
ErrorCode
{
GCPStopDetected
=
3
,
CopyFragRefError
=
5
,
TestStopOnError
=
6
TestStopOnError
=
6
,
CopySubscriptionRef
=
7
,
CopySubscriberRef
=
8
};
private:
Uint32
errorRef
;
Uint32
errorCode
;
Uint32
data1
;
...
...
storage/ndb/src/kernel/blocks/ndbcntr/NdbcntrMain.cpp
View file @
cfc336a0
...
...
@@ -203,6 +203,20 @@ void Ndbcntr::execSYSTEM_ERROR(Signal* signal)
killingNode
,
data1
);
break
;
case
SystemError
:
:
CopySubscriptionRef
:
BaseString
::
snprintf
(
buf
,
sizeof
(
buf
),
"Node %d killed this node because "
"it could not copy a subscription during node restart. "
"Copy subscription error code: %u."
,
killingNode
,
data1
);
break
;
case
SystemError
:
:
CopySubscriberRef
:
BaseString
::
snprintf
(
buf
,
sizeof
(
buf
),
"Node %d killed this node because "
"it could not start a subscriber during node restart. "
"Copy subscription error code: %u."
,
killingNode
,
data1
);
break
;
default:
BaseString
::
snprintf
(
buf
,
sizeof
(
buf
),
"System error %d, "
" this node was killed by node %d"
,
...
...
storage/ndb/src/kernel/blocks/suma/Suma.cpp
View file @
cfc336a0
...
...
@@ -44,6 +44,7 @@
#include <signaldata/DropTab.hpp>
#include <signaldata/AlterTab.hpp>
#include <signaldata/DihFragCount.hpp>
#include <signaldata/SystemError.hpp>
#include <ndbapi/NdbDictionary.hpp>
...
...
@@ -690,7 +691,7 @@ Suma::execNODE_FAILREP(Signal* signal){
if
(
failed
.
get
(
Restart
.
nodeId
))
{
Restart
.
nodeId
=
0
;
Restart
.
resetRestart
(
signal
)
;
}
signal
->
theData
[
0
]
=
SumaContinueB
::
RESEND_BUCKET
;
...
...
@@ -3758,7 +3759,33 @@ Suma::execSUB_CREATE_REF(Signal* signal) {
jamEntry
();
DBUG_ENTER
(
"Suma::execSUB_CREATE_REF"
);
ndbassert
(
signal
->
getNoOfSections
()
==
0
);
ndbrequire
(
false
);
SubCreateRef
*
const
ref
=
(
SubCreateRef
*
)
signal
->
getDataPtr
();
Uint32
error
=
ref
->
errorCode
;
if
(
error
!=
1415
)
{
/*
* This will happen if an api node connects during while other node
* is restarting, and in this case the subscription will already
* have been created.
* ToDo: more complete handling of api nodes joining during
* node restart
*/
Uint32
senderRef
=
signal
->
getSendersBlockRef
();
BlockReference
cntrRef
=
calcNdbCntrBlockRef
(
refToNode
(
senderRef
));
// for some reason we did not manage to create a subscription
// on the starting node
SystemError
*
const
sysErr
=
(
SystemError
*
)
&
signal
->
theData
[
0
];
sysErr
->
errorCode
=
SystemError
::
CopySubscriptionRef
;
sysErr
->
errorRef
=
reference
();
sysErr
->
data1
=
error
;
sysErr
->
data2
=
0
;
sendSignal
(
cntrRef
,
GSN_SYSTEM_ERROR
,
signal
,
SystemError
::
SignalLength
,
JBB
);
Restart
.
resetRestart
(
signal
);
DBUG_VOID_RETURN
;
}
// SubCreateConf has same signaldata as SubCreateRef
Restart
.
runSUB_CREATE_CONF
(
signal
);
DBUG_VOID_RETURN
;
}
...
...
@@ -3787,7 +3814,22 @@ Suma::execSUB_START_REF(Signal* signal) {
jamEntry
();
DBUG_ENTER
(
"Suma::execSUB_START_REF"
);
ndbassert
(
signal
->
getNoOfSections
()
==
0
);
ndbrequire
(
false
);
SubStartRef
*
const
ref
=
(
SubStartRef
*
)
signal
->
getDataPtr
();
Uint32
error
=
ref
->
errorCode
;
{
Uint32
senderRef
=
signal
->
getSendersBlockRef
();
BlockReference
cntrRef
=
calcNdbCntrBlockRef
(
refToNode
(
senderRef
));
// for some reason we did not manage to start a subscriber
// on the starting node
SystemError
*
const
sysErr
=
(
SystemError
*
)
&
signal
->
theData
[
0
];
sysErr
->
errorCode
=
SystemError
::
CopySubscriberRef
;
sysErr
->
errorRef
=
reference
();
sysErr
->
data1
=
error
;
sysErr
->
data2
=
0
;
sendSignal
(
cntrRef
,
GSN_SYSTEM_ERROR
,
signal
,
SystemError
::
SignalLength
,
JBB
);
Restart
.
resetRestart
(
signal
);
}
DBUG_VOID_RETURN
;
}
...
...
@@ -4082,6 +4124,15 @@ Suma::Restart::completeRestartingNode(Signal* signal, Uint32 sumaRef)
//SumaStartMeConf *conf= (SumaStartMeConf*)signal->getDataPtrSend();
suma
.
sendSignal
(
sumaRef
,
GSN_SUMA_START_ME_CONF
,
signal
,
SumaStartMeConf
::
SignalLength
,
JBB
);
resetRestart
(
signal
);
DBUG_VOID_RETURN
;
}
void
Suma
::
Restart
::
resetRestart
(
Signal
*
signal
)
{
jam
();
DBUG_ENTER
(
"Suma::Restart::resetRestart"
);
nodeId
=
0
;
DBUG_VOID_RETURN
;
}
...
...
storage/ndb/src/kernel/blocks/suma/Suma.hpp
View file @
cfc336a0
...
...
@@ -489,6 +489,7 @@ public:
void
completeSubscriber
(
Signal
*
signal
,
Uint32
sumaRef
);
void
completeRestartingNode
(
Signal
*
signal
,
Uint32
sumaRef
);
void
resetRestart
(
Signal
*
signal
);
}
Restart
;
private
:
...
...
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