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
3ee18c99
Commit
3ee18c99
authored
May 27, 2004
by
joreland@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix bank
parent
a70eee10
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
58 additions
and
71 deletions
+58
-71
ndb/test/ndbapi/Makefile.am
ndb/test/ndbapi/Makefile.am
+0
-2
ndb/test/ndbapi/bank/Bank.cpp
ndb/test/ndbapi/bank/Bank.cpp
+51
-51
ndb/test/ndbapi/bank/BankLoad.cpp
ndb/test/ndbapi/bank/BankLoad.cpp
+6
-6
ndb/test/ndbapi/testBackup.cpp
ndb/test/ndbapi/testBackup.cpp
+0
-5
ndb/test/ndbapi/testGrep.cpp
ndb/test/ndbapi/testGrep.cpp
+1
-7
No files found.
ndb/test/ndbapi/Makefile.am
View file @
3ee18c99
...
...
@@ -9,7 +9,6 @@ create_tab \
flexAsynch
\
flexBench
\
flexHammer
\
flexScan
\
flexTT
\
testBackup
\
testBasic
\
...
...
@@ -40,7 +39,6 @@ drop_all_tabs_SOURCES = drop_all_tabs.cpp
flexAsynch_SOURCES
=
flexAsynch.cpp
flexBench_SOURCES
=
flexBench.cpp
flexHammer_SOURCES
=
flexHammer.cpp
flexScan_SOURCES
=
flexScan.cpp
flexTT_SOURCES
=
flexTT.cpp
#flexTimedAsynch_SOURCES = flexTimedAsynch.cpp
#flex_bench_mysql_SOURCES = flex_bench_mysql.cpp
...
...
ndb/test/ndbapi/bank/Bank.cpp
View file @
3ee18c99
This diff is collapsed.
Click to expand it.
ndb/test/ndbapi/bank/BankLoad.cpp
View file @
3ee18c99
...
...
@@ -335,15 +335,15 @@ int Bank::getBalanceForAccountType(const Uint32 accountType,
return
NDBT_FAILED
;
}
Ndb
Operation
*
pOp
=
pScanTrans
->
getNdb
Operation
(
"ACCOUNT"
);
Ndb
ScanOperation
*
pOp
=
pScanTrans
->
getNdbScan
Operation
(
"ACCOUNT"
);
if
(
pOp
==
NULL
)
{
ERR
(
pScanTrans
->
getNdbError
());
m_ndb
.
closeTransaction
(
pScanTrans
);
return
NDBT_FAILED
;
}
check
=
pOp
->
openScanRead
(
64
);
if
(
check
==
-
1
)
{
NdbResultSet
*
rs
=
pOp
->
readTuples
(
);
if
(
rs
==
0
)
{
ERR
(
pScanTrans
->
getNdbError
());
m_ndb
.
closeTransaction
(
pScanTrans
);
return
NDBT_FAILED
;
...
...
@@ -370,7 +370,7 @@ int Bank::getBalanceForAccountType(const Uint32 accountType,
return
NDBT_FAILED
;
}
check
=
pScanTrans
->
execute
Scan
();
check
=
pScanTrans
->
execute
(
NoCommit
);
if
(
check
==
-
1
)
{
ERR
(
pScanTrans
->
getNdbError
());
m_ndb
.
closeTransaction
(
pScanTrans
);
...
...
@@ -379,7 +379,7 @@ int Bank::getBalanceForAccountType(const Uint32 accountType,
int
eof
;
int
rows
=
0
;
eof
=
pScanTrans
->
nextScan
Result
();
eof
=
rs
->
next
Result
();
while
(
eof
==
0
){
rows
++
;
...
...
@@ -391,7 +391,7 @@ int Bank::getBalanceForAccountType(const Uint32 accountType,
balance
+=
b
;
}
eof
=
pScanTrans
->
nextScan
Result
();
eof
=
rs
->
next
Result
();
}
if
(
eof
==
-
1
)
{
ERR
(
pScanTrans
->
getNdbError
());
...
...
ndb/test/ndbapi/testBackup.cpp
View file @
3ee18c99
...
...
@@ -205,8 +205,6 @@ int runClearTable(NDBT_Context* ctx, NDBT_Step* step){
return
NDBT_OK
;
}
#if 0
#include "bank/Bank.hpp"
int
runCreateBank
(
NDBT_Context
*
ctx
,
NDBT_Step
*
step
){
...
...
@@ -395,7 +393,6 @@ int runRestoreBankAndVerify(NDBT_Context* ctx, NDBT_Step* step){
return
result
;
}
#endif
NDBT_TESTSUITE
(
testBackup
);
TESTCASE
(
"BackupOne"
,
...
...
@@ -413,7 +410,6 @@ TESTCASE("BackupOne",
FINALIZER
(
runClearTable
);
}
#if 0
TESTCASE
(
"BackupBank"
,
"Test that backup and restore works during transaction load
\n
"
" by backing up the bank"
...
...
@@ -433,7 +429,6 @@ TESTCASE("BackupBank",
VERIFIER
(
runRestoreBankAndVerify
);
// FINALIZER(runDropBank);
}
#endif
TESTCASE
(
"NFMaster"
,
"Test that backup behaves during node failiure
\n
"
){
INITIALIZER
(
setMaster
);
...
...
ndb/test/ndbapi/testGrep.cpp
View file @
3ee18c99
...
...
@@ -254,9 +254,7 @@ int runClearTable(NDBT_Context* ctx, NDBT_Step* step){
return
NDBT_OK
;
}
#if 0
#include "../bank/Bank.hpp"
#include "bank/Bank.hpp"
int
runCreateBank
(
NDBT_Context
*
ctx
,
NDBT_Step
*
step
){
Bank
bank
;
...
...
@@ -445,7 +443,6 @@ int runRestoreBankAndVerify(NDBT_Context* ctx, NDBT_Step* step){
return result;
}
*/
#endif
NDBT_TESTSUITE
(
testGrep
);
TESTCASE
(
"GrepBasic"
,
...
...
@@ -476,8 +473,6 @@ TESTCASE("GrepNodeRestart",
}
#if 0
TESTCASE
(
"GrepBank"
,
"Test that grep and restore works during transaction load
\n
"
" by backing up the bank"
...
...
@@ -498,7 +493,6 @@ TESTCASE("GrepBank",
// FINALIZER(runDropBank);
}
#endif
TESTCASE
(
"NFMaster"
,
"Test that grep behaves during node failiure
\n
"
){
...
...
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