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
db7a9b76
Commit
db7a9b76
authored
Mar 27, 2006
by
jonas@perch.ndb.mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge perch.ndb.mysql.com:/home/jonas/src/50-work
into perch.ndb.mysql.com:/home/jonas/src/mysql-5.0
parents
49df84ad
7f71a8eb
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
37 additions
and
12 deletions
+37
-12
ndb/src/kernel/blocks/cmvmi/Cmvmi.cpp
ndb/src/kernel/blocks/cmvmi/Cmvmi.cpp
+15
-2
ndb/test/ndbapi/testNodeRestart.cpp
ndb/test/ndbapi/testNodeRestart.cpp
+12
-0
ndb/test/src/NdbBackup.cpp
ndb/test/src/NdbBackup.cpp
+2
-2
ndb/test/src/NdbRestarts.cpp
ndb/test/src/NdbRestarts.cpp
+8
-8
No files found.
ndb/src/kernel/blocks/cmvmi/Cmvmi.cpp
View file @
db7a9b76
...
@@ -1078,11 +1078,24 @@ Cmvmi::execDUMP_STATE_ORD(Signal* signal)
...
@@ -1078,11 +1078,24 @@ Cmvmi::execDUMP_STATE_ORD(Signal* signal)
g_sectionSegmentPool
.
getNoOfFree
());
g_sectionSegmentPool
.
getNoOfFree
());
}
}
if
(
dumpState
->
args
[
0
]
==
DumpStateOrd
::
CmvmiSetRestartOnErrorInsert
){
if
(
dumpState
->
args
[
0
]
==
DumpStateOrd
::
CmvmiSetRestartOnErrorInsert
)
{
if
(
signal
->
getLength
()
==
1
)
if
(
signal
->
getLength
()
==
1
)
theConfig
.
setRestartOnErrorInsert
((
int
)
NRT_NoStart_Restart
);
{
Uint32
val
=
(
Uint32
)
NRT_NoStart_Restart
;
const
ndb_mgm_configuration_iterator
*
p
=
theConfig
.
getOwnConfigIterator
();
ndbrequire
(
p
!=
0
);
if
(
!
ndb_mgm_get_int_parameter
(
p
,
CFG_DB_STOP_ON_ERROR_INSERT
,
&
val
))
{
theConfig
.
setRestartOnErrorInsert
(
val
);
}
}
else
else
{
theConfig
.
setRestartOnErrorInsert
(
signal
->
theData
[
1
]);
theConfig
.
setRestartOnErrorInsert
(
signal
->
theData
[
1
]);
}
}
}
if
(
dumpState
->
args
[
0
]
==
DumpStateOrd
::
CmvmiTestLongSigWithDelay
)
{
if
(
dumpState
->
args
[
0
]
==
DumpStateOrd
::
CmvmiTestLongSigWithDelay
)
{
...
...
ndb/test/ndbapi/testNodeRestart.cpp
View file @
db7a9b76
...
@@ -433,6 +433,11 @@ int runBug15587(NDBT_Context* ctx, NDBT_Step* step){
...
@@ -433,6 +433,11 @@ int runBug15587(NDBT_Context* ctx, NDBT_Step* step){
if
(
restarter
.
waitNodesNoStart
(
&
nodeId
,
1
))
if
(
restarter
.
waitNodesNoStart
(
&
nodeId
,
1
))
return
NDBT_FAILED
;
return
NDBT_FAILED
;
int
val2
[]
=
{
DumpStateOrd
::
CmvmiSetRestartOnErrorInsert
,
1
};
if
(
restarter
.
dumpStateOneNode
(
nodeId
,
val2
,
2
))
return
NDBT_FAILED
;
if
(
restarter
.
dumpStateOneNode
(
nodeId
,
dump
,
2
))
if
(
restarter
.
dumpStateOneNode
(
nodeId
,
dump
,
2
))
return
NDBT_FAILED
;
return
NDBT_FAILED
;
...
@@ -444,6 +449,9 @@ int runBug15587(NDBT_Context* ctx, NDBT_Step* step){
...
@@ -444,6 +449,9 @@ int runBug15587(NDBT_Context* ctx, NDBT_Step* step){
if
(
restarter
.
waitNodesNoStart
(
&
nodeId
,
1
))
if
(
restarter
.
waitNodesNoStart
(
&
nodeId
,
1
))
return
NDBT_FAILED
;
return
NDBT_FAILED
;
if
(
restarter
.
dumpStateOneNode
(
nodeId
,
val2
,
1
))
return
NDBT_FAILED
;
if
(
restarter
.
startNodes
(
&
nodeId
,
1
))
if
(
restarter
.
startNodes
(
&
nodeId
,
1
))
return
NDBT_FAILED
;
return
NDBT_FAILED
;
...
@@ -626,6 +634,10 @@ runBug18414(NDBT_Context* ctx, NDBT_Step* step){
...
@@ -626,6 +634,10 @@ runBug18414(NDBT_Context* ctx, NDBT_Step* step){
goto
err
;
goto
err
;
}
}
int
val2
[]
=
{
DumpStateOrd
::
CmvmiSetRestartOnErrorInsert
,
1
};
if
(
restarter
.
dumpStateOneNode
(
node2
,
val2
,
2
))
goto
err
;
if
(
restarter
.
insertErrorInNode
(
node2
,
5003
))
if
(
restarter
.
insertErrorInNode
(
node2
,
5003
))
goto
err
;
goto
err
;
...
...
ndb/test/src/NdbBackup.cpp
View file @
db7a9b76
...
@@ -292,8 +292,8 @@ NdbBackup::NF(NdbRestarter& _restarter, int *NFDuringBackup_codes, const int sz,
...
@@ -292,8 +292,8 @@ NdbBackup::NF(NdbRestarter& _restarter, int *NFDuringBackup_codes, const int sz,
<<
masterNodeId
<<
endl
;
<<
masterNodeId
<<
endl
;
int
val
=
DumpStateOrd
::
CmvmiSetRestartOnErrorInsert
;
int
val
[]
=
{
DumpStateOrd
::
CmvmiSetRestartOnErrorInsert
,
1
}
;
CHECK
(
_restarter
.
dumpStateOneNode
(
nodeId
,
&
val
,
1
)
==
0
,
CHECK
(
_restarter
.
dumpStateOneNode
(
nodeId
,
val
,
2
)
==
0
,
"failed to set RestartOnErrorInsert"
);
"failed to set RestartOnErrorInsert"
);
CHECK
(
_restarter
.
insertErrorInNode
(
nodeId
,
error
)
==
0
,
CHECK
(
_restarter
.
insertErrorInNode
(
nodeId
,
error
)
==
0
,
"failed to set error insert"
);
"failed to set error insert"
);
...
...
ndb/test/src/NdbRestarts.cpp
View file @
db7a9b76
...
@@ -641,8 +641,8 @@ int restartNFDuringNR(NdbRestarter& _restarter,
...
@@ -641,8 +641,8 @@ int restartNFDuringNR(NdbRestarter& _restarter,
CHECK
(
_restarter
.
waitNodesNoStart
(
&
nodeId
,
1
)
==
0
,
CHECK
(
_restarter
.
waitNodesNoStart
(
&
nodeId
,
1
)
==
0
,
"waitNodesNoStart failed"
);
"waitNodesNoStart failed"
);
int
val
=
DumpStateOrd
::
CmvmiSetRestartOnErrorInsert
;
int
val
[]
=
{
DumpStateOrd
::
CmvmiSetRestartOnErrorInsert
,
1
}
;
CHECK
(
_restarter
.
dumpStateOneNode
(
nodeId
,
&
val
,
1
)
==
0
,
CHECK
(
_restarter
.
dumpStateOneNode
(
nodeId
,
val
,
2
)
==
0
,
"failed to set RestartOnErrorInsert"
);
"failed to set RestartOnErrorInsert"
);
CHECK
(
_restarter
.
insertErrorInNode
(
nodeId
,
error
)
==
0
,
CHECK
(
_restarter
.
insertErrorInNode
(
nodeId
,
error
)
==
0
,
...
@@ -698,8 +698,8 @@ int restartNFDuringNR(NdbRestarter& _restarter,
...
@@ -698,8 +698,8 @@ int restartNFDuringNR(NdbRestarter& _restarter,
CHECK
(
_restarter
.
waitNodesNoStart
(
&
nodeId
,
1
)
==
0
,
CHECK
(
_restarter
.
waitNodesNoStart
(
&
nodeId
,
1
)
==
0
,
"waitNodesNoStart failed"
);
"waitNodesNoStart failed"
);
int
val
=
DumpStateOrd
::
CmvmiSetRestartOnErrorInsert
;
int
val
[]
=
{
DumpStateOrd
::
CmvmiSetRestartOnErrorInsert
,
1
}
;
CHECK
(
_restarter
.
dumpStateOneNode
(
crashNodeId
,
&
val
,
2
)
==
0
,
CHECK
(
_restarter
.
dumpStateOneNode
(
crashNodeId
,
val
,
2
)
==
0
,
"failed to set RestartOnErrorInsert"
);
"failed to set RestartOnErrorInsert"
);
CHECK
(
_restarter
.
insertErrorInNode
(
crashNodeId
,
error
)
==
0
,
CHECK
(
_restarter
.
insertErrorInNode
(
crashNodeId
,
error
)
==
0
,
...
@@ -771,8 +771,8 @@ int restartNodeDuringLCP(NdbRestarter& _restarter,
...
@@ -771,8 +771,8 @@ int restartNodeDuringLCP(NdbRestarter& _restarter,
<<
" error code = "
<<
error
<<
endl
;
<<
" error code = "
<<
error
<<
endl
;
{
{
int
val
=
DumpStateOrd
::
CmvmiSetRestartOnErrorInsert
;
int
val
[]
=
{
DumpStateOrd
::
CmvmiSetRestartOnErrorInsert
,
1
}
;
CHECK
(
_restarter
.
dumpStateAllNodes
(
&
val
,
1
)
==
0
,
CHECK
(
_restarter
.
dumpStateAllNodes
(
val
,
2
)
==
0
,
"failed to set RestartOnErrorInsert"
);
"failed to set RestartOnErrorInsert"
);
}
}
...
@@ -812,8 +812,8 @@ int restartNodeDuringLCP(NdbRestarter& _restarter,
...
@@ -812,8 +812,8 @@ int restartNodeDuringLCP(NdbRestarter& _restarter,
ndbout
<<
_restart
->
m_name
<<
" restarting non-master node = "
<<
nodeId
ndbout
<<
_restart
->
m_name
<<
" restarting non-master node = "
<<
nodeId
<<
" error code = "
<<
error
<<
endl
;
<<
" error code = "
<<
error
<<
endl
;
int
val
=
DumpStateOrd
::
CmvmiSetRestartOnErrorInsert
;
int
val
[]
=
{
DumpStateOrd
::
CmvmiSetRestartOnErrorInsert
,
1
}
;
CHECK
(
_restarter
.
dumpStateAllNodes
(
&
val
,
1
)
==
0
,
CHECK
(
_restarter
.
dumpStateAllNodes
(
val
,
2
)
==
0
,
"failed to set RestartOnErrorInsert"
);
"failed to set RestartOnErrorInsert"
);
CHECK
(
_restarter
.
insertErrorInNode
(
nodeId
,
error
)
==
0
,
CHECK
(
_restarter
.
insertErrorInNode
(
nodeId
,
error
)
==
0
,
...
...
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