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
53091776
Commit
53091776
authored
Jun 07, 2005
by
joreland@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ndb - update test prg for testDict -n NF1
parent
ebc9d76d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
18 deletions
+5
-18
ndb/src/kernel/blocks/dbdih/DbdihMain.cpp
ndb/src/kernel/blocks/dbdih/DbdihMain.cpp
+1
-0
ndb/test/ndbapi/testDict.cpp
ndb/test/ndbapi/testDict.cpp
+4
-18
No files found.
ndb/src/kernel/blocks/dbdih/DbdihMain.cpp
View file @
53091776
...
...
@@ -6458,6 +6458,7 @@ void Dbdih::execDIADDTABREQ(Signal* signal)
ndbrequire
(
noReplicas
==
cnoReplicas
);
// Only allowed
if
(
ERROR_INSERTED
(
7173
))
{
CLEAR_ERROR_INSERT_VALUE
;
addtabrefuseLab
(
signal
,
connectPtr
,
ZREPLERROR1
);
return
;
}
...
...
ndb/test/ndbapi/testDict.cpp
View file @
53091776
...
...
@@ -1009,10 +1009,10 @@ int runGetPrimaryKey(NDBT_Context* ctx, NDBT_Step* step){
struct
ErrorCodes
{
int
error_id
;
bool
crash
;};
ErrorCodes
NF_codes
[]
=
{
{
6003
,
true
}
,
{
6004
,
true
},
{
6003
,
true
}
,{
6004
,
true
}
//,6005, true,
{
7173
,
false
}
//
{7173, false}
};
int
...
...
@@ -1031,17 +1031,6 @@ runNF1(NDBT_Context* ctx, NDBT_Step* step){
int
result
=
NDBT_OK
;
/**
* Need to run LCP at high rate otherwise
* packed replicas become "to many"
*/
int
val
=
DumpStateOrd
::
DihMinTimeBetweenLCP
;
if
(
restarter
.
dumpStateAllNodes
(
&
val
,
1
)
!=
0
){
do
{
CHECK
(
0
);
}
while
(
0
);
g_err
<<
"Failed to set LCP to min value"
<<
endl
;
return
NDBT_FAILED
;
}
const
int
loops
=
ctx
->
getNumLoops
();
for
(
int
l
=
0
;
l
<
loops
&&
result
==
NDBT_OK
;
l
++
){
const
int
sz
=
sizeof
(
NF_codes
)
/
sizeof
(
NF_codes
[
0
]);
...
...
@@ -1064,7 +1053,7 @@ runNF1(NDBT_Context* ctx, NDBT_Step* step){
CHECK2
(
dict
->
createTable
(
*
pTab
)
==
0
,
"failed to create table"
);
if
(
crash
)
{
CHECK2
(
restarter
.
waitNodesNoStart
(
&
nodeId
,
1
)
==
0
,
"waitNodesNoStart failed"
);
...
...
@@ -1088,9 +1077,6 @@ runNF1(NDBT_Context* ctx, NDBT_Step* step){
CHECK2
(
restarter
.
waitClusterStarted
()
==
0
,
"waitClusterStarted failed"
);
}
CHECK2
(
restarter
.
dumpStateOneNode
(
nodeId
,
&
val
,
1
)
==
0
,
"Failed to set LCP to min value"
);
}
}
}
...
...
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