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
6039a50e
Commit
6039a50e
authored
Feb 11, 2005
by
joreland@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ndb - old bench rescue
parent
e0cd99c2
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
16 deletions
+12
-16
ndb/test/ndbapi/bench/mainPopulate.cpp
ndb/test/ndbapi/bench/mainPopulate.cpp
+6
-9
ndb/test/ndbapi/bench/userInterface.cpp
ndb/test/ndbapi/bench/userInterface.cpp
+1
-2
ndb/test/run-test/daily-devel-tests.txt
ndb/test/run-test/daily-devel-tests.txt
+5
-5
No files found.
ndb/test/ndbapi/bench/mainPopulate.cpp
View file @
6039a50e
...
@@ -22,12 +22,12 @@
...
@@ -22,12 +22,12 @@
#include <NdbMain.h>
#include <NdbMain.h>
#include <NdbOut.hpp>
#include <NdbOut.hpp>
#include <random.h>
#include <random.h>
#include <NDBT.hpp>
#ifdef __cplusplus
#ifdef __cplusplus
extern
"C"
{
extern
"C"
{
#endif
#endif
int
useTableLogging
;
int
useTableLogging
;
int
useIndexTables
;
#ifdef __cplusplus
#ifdef __cplusplus
}
}
#endif
#endif
...
@@ -44,7 +44,6 @@ void usage(const char *prog)
...
@@ -44,7 +44,6 @@ void usage(const char *prog)
ndbout_c
(
ndbout_c
(
"Usage: %s [-l]
\n
"
"Usage: %s [-l]
\n
"
" -l Use logging and checkpointing on tables
\n
"
,
" -l Use logging and checkpointing on tables
\n
"
,
" -i Use index tables
\n
"
,
prog
);
prog
);
exit
(
1
);
exit
(
1
);
...
@@ -57,28 +56,26 @@ NDB_COMMAND(DbCreate, "DbCreate", "DbCreate", "DbCreate", 16384)
...
@@ -57,28 +56,26 @@ NDB_COMMAND(DbCreate, "DbCreate", "DbCreate", "DbCreate", 16384)
int
i
;
int
i
;
UserHandle
*
uh
;
UserHandle
*
uh
;
useTableLogging
=
useIndexTables
=
0
;
useTableLogging
=
0
;
NDB_INIT
(
argv
[
0
]);
NDB_INIT
(
argv
[
0
]);
for
(
i
=
1
;
i
<
argc
;
i
++
){
for
(
i
=
1
;
i
<
argc
;
i
++
){
if
(
strcmp
(
argv
[
i
],
"-l"
)
==
0
){
if
(
strcmp
(
argv
[
i
],
"-l"
)
==
0
){
useTableLogging
=
1
;
useTableLogging
=
1
;
}
else
if
(
strcmp
(
argv
[
i
],
"-i"
)
==
0
){
useIndexTables
=
1
;
}
else
{
}
else
{
usage
(
argv
[
0
]);
usage
(
argv
[
0
]);
return
0
;
return
0
;
}
}
}
}
ndbout_c
(
"Using %s tables and %s key storage"
,
ndbout_c
(
"Using %s tables"
,
useTableLogging
?
"logging"
:
"temporary"
,
useTableLogging
?
"logging"
:
"temporary"
);
useIndexTables
?
"index"
:
"normal"
);
myRandom48Init
(
0x3e6f
);
myRandom48Init
(
0x3e6f
);
uh
=
userDbConnect
(
1
,
"TEST_DB"
);
uh
=
userDbConnect
(
1
,
"TEST_DB"
);
dbPopulate
(
uh
);
dbPopulate
(
uh
);
userDbDisconnect
(
uh
);
userDbDisconnect
(
uh
);
return
(
0
);
return
NDBT_ProgramExit
(
NDBT_OK
);
}
}
ndb/test/ndbapi/bench/userInterface.cpp
View file @
6039a50e
...
@@ -134,7 +134,6 @@ userDbCommit(UserHandle *uh){
...
@@ -134,7 +134,6 @@ userDbCommit(UserHandle *uh){
extern
"C"
{
extern
"C"
{
#endif
#endif
extern
int
useTableLogging
;
extern
int
useTableLogging
;
extern
int
useIndexTables
;
#ifdef __cplusplus
#ifdef __cplusplus
}
}
#endif
#endif
...
@@ -377,7 +376,7 @@ create_table_subscriber(Ndb * pNdb){
...
@@ -377,7 +376,7 @@ create_table_subscriber(Ndb * pNdb){
String
,
String
,
MMBased
,
MMBased
,
NotNullAttribute
,
NotNullAttribute
,
(
useIndexTables
?
IndexStorageAttribute
:
NormalStorageAttribute
)
,
NormalStorageAttribute
,
0
,
0
,
1
,
1
,
16
);
16
);
...
...
ndb/test/run-test/daily-devel-tests.txt
View file @
6039a50e
...
@@ -210,26 +210,26 @@ args:
...
@@ -210,26 +210,26 @@ args:
max-time: 180
max-time: 180
cmd: DbAsyncGenerator
cmd: DbAsyncGenerator
args: -t 60 -p 1
args: -t
ime
60 -p 1
type: bench
type: bench
max-time: 180
max-time: 180
cmd: DbAsyncGenerator
cmd: DbAsyncGenerator
args: -t 60 -p 25
args: -t
ime
60 -p 25
type: bench
type: bench
max-time: 180
max-time: 180
cmd: DbAsyncGenerator
cmd: DbAsyncGenerator
args: -t 60 -p 100
args: -t
ime
60 -p 100
type: bench
type: bench
max-time: 180
max-time: 180
cmd: DbAsyncGenerator
cmd: DbAsyncGenerator
args: -t 60 -p 200
args: -t
ime
60 -p 200
type: bench
type: bench
max-time: 180
max-time: 180
cmd: DbAsyncGenerator
cmd: DbAsyncGenerator
args: -t 60 -p 1 -proc 25
args: -t
ime
60 -p 1 -proc 25
type: bench
type: bench
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