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
3677a2dd
Commit
3677a2dd
authored
Jan 09, 2008
by
jmiller/ndbdev@mysql.com/ndb15.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
NdbRepStress.cpp:
More code improvments
parent
8b4a1916
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
storage/ndb/test/ndbapi/acrt/NdbRepStress.cpp
storage/ndb/test/ndbapi/acrt/NdbRepStress.cpp
+4
-6
No files found.
storage/ndb/test/ndbapi/acrt/NdbRepStress.cpp
View file @
3677a2dd
...
...
@@ -26,8 +26,6 @@ Will include restart testing in future phases
#include <NdbRestarts.hpp>
*/
static
int
t1_records
=
50000
;
/**** TOOL SECTION ****/
static
uint
...
...
@@ -360,7 +358,7 @@ createTable_rep1(NDBT_Context* ctx, NDBT_Step* step)
ctx
->
setProperty
(
"TABLES"
,
table
.
c_str
());
HugoTransactions
hugoTrans
(
*
ctx
->
getTab
());
if
(
hugoTrans
.
loadTable
(
GETNDB
(
step
),
t1_records
,
1
,
true
,
0
)
!=
NDBT_OK
)
if
(
hugoTrans
.
loadTable
(
GETNDB
(
step
),
ctx
->
getNumRecords
()
,
1
,
true
,
0
)
!=
NDBT_OK
)
{
g_err
<<
"Create Table -> Load failed!"
<<
endl
;
return
NDBT_FAILED
;
...
...
@@ -383,12 +381,12 @@ stressNDB_rep1(NDBT_Context* ctx, NDBT_Step* step)
HugoTransactions
hugoTrans
(
*
table
);
while
(
!
ctx
->
isTestStopped
())
{
if
(
hugoTrans
.
pkUpdateRecords
(
GETNDB
(
step
),
t1_records
,
1
,
30
)
!=
0
)
if
(
hugoTrans
.
pkUpdateRecords
(
GETNDB
(
step
),
ctx
->
getNumRecords
()
,
1
,
30
)
!=
0
)
{
g_err
<<
"pkUpdate Failed!"
<<
endl
;
return
NDBT_FAILED
;
}
if
(
hugoTrans
.
scanUpdateRecords
(
GETNDB
(
step
),
t1_records
,
1
,
30
)
!=
0
)
if
(
hugoTrans
.
scanUpdateRecords
(
GETNDB
(
step
),
ctx
->
getNumRecords
()
,
1
,
30
)
!=
0
)
{
g_err
<<
"scanUpdate Failed!"
<<
endl
;
return
NDBT_FAILED
;
...
...
@@ -415,7 +413,7 @@ stressSQL_rep1(NDBT_Context* ctx, NDBT_Step* step)
for
(
int
j
=
0
;
loops
==
0
||
j
<
loops
;
j
++
)
{
record
=
urandom
(
t1_records
);
record
=
urandom
(
ctx
->
getNumRecords
()
);
sqlStm
.
assfmt
(
"UPDATE TEST_DB.rep1 SET c2 = 33.3221 where c1 = %u"
,
record
);
if
(
master
.
doQuery
(
sqlStm
.
c_str
()))
{
...
...
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