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
d70f092a
Commit
d70f092a
authored
Sep 09, 2005
by
jonas@eel.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
merge fixes
parent
2bd9c2d6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
ndb/test/ndbapi/testSRBank.cpp
ndb/test/ndbapi/testSRBank.cpp
+7
-7
No files found.
ndb/test/ndbapi/testSRBank.cpp
View file @
d70f092a
...
...
@@ -23,7 +23,7 @@
#include "bank/Bank.hpp"
int
runCreateBank
(
NDBT_Context
*
ctx
,
NDBT_Step
*
step
){
Bank
bank
;
Bank
bank
(
ctx
->
m_cluster_connection
)
;
int
overWriteExisting
=
true
;
if
(
bank
.
createAndLoadBank
(
overWriteExisting
,
10
)
!=
NDBT_OK
)
return
NDBT_FAILED
;
...
...
@@ -43,7 +43,7 @@ int runBankTimer(NDBT_Context* ctx, NDBT_Step* step){
ctx
->
incProperty
(
"ThreadCount"
);
while
(
!
ctx
->
isTestStopped
())
{
Bank
bank
;
Bank
bank
(
ctx
->
m_cluster_connection
)
;
while
(
!
ctx
->
isTestStopped
()
&&
ctx
->
getProperty
(
"SR"
)
<=
1
)
if
(
bank
.
performIncreaseTime
(
wait
,
yield
)
==
NDBT_FAILED
)
break
;
...
...
@@ -63,7 +63,7 @@ int runBankTransactions(NDBT_Context* ctx, NDBT_Step* step){
ctx
->
incProperty
(
"ThreadCount"
);
while
(
!
ctx
->
isTestStopped
())
{
Bank
bank
;
Bank
bank
(
ctx
->
m_cluster_connection
)
;
while
(
!
ctx
->
isTestStopped
()
&&
ctx
->
getProperty
(
"SR"
)
<=
1
)
if
(
bank
.
performTransactions
(
0
,
1
)
==
NDBT_FAILED
)
break
;
...
...
@@ -83,7 +83,7 @@ int runBankGL(NDBT_Context* ctx, NDBT_Step* step){
ctx
->
incProperty
(
"ThreadCount"
);
while
(
ctx
->
isTestStopped
()
==
false
)
{
Bank
bank
;
Bank
bank
(
ctx
->
m_cluster_connection
)
;
while
(
!
ctx
->
isTestStopped
()
&&
ctx
->
getProperty
(
"SR"
)
<=
1
)
if
(
bank
.
performMakeGLs
(
yield
)
!=
NDBT_OK
)
{
...
...
@@ -102,7 +102,7 @@ int runBankGL(NDBT_Context* ctx, NDBT_Step* step){
}
int
runBankSum
(
NDBT_Context
*
ctx
,
NDBT_Step
*
step
){
Bank
bank
;
Bank
bank
(
ctx
->
m_cluster_connection
)
;
int
wait
=
2000
;
// Max ms between each sum of accounts
int
yield
=
1
;
// Loops before bank returns
int
result
=
NDBT_OK
;
...
...
@@ -160,7 +160,7 @@ int runSR(NDBT_Context* ctx, NDBT_Step* step)
{
int
wait
=
0
;
int
yield
=
1
;
Bank
bank
;
Bank
bank
(
ctx
->
m_cluster_connection
)
;
if
(
bank
.
performSumAccounts
(
wait
,
yield
)
!=
0
)
{
ndbout
<<
"bank.performSumAccounts FAILED"
<<
endl
;
...
...
@@ -183,7 +183,7 @@ int runSR(NDBT_Context* ctx, NDBT_Step* step)
}
int
runDropBank
(
NDBT_Context
*
ctx
,
NDBT_Step
*
step
){
Bank
bank
;
Bank
bank
(
ctx
->
m_cluster_connection
)
;
if
(
bank
.
dropBank
()
!=
NDBT_OK
)
return
NDBT_FAILED
;
return
NDBT_OK
;
...
...
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