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
8b48a8e8
Commit
8b48a8e8
authored
Jun 08, 2006
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge joreland@bk-internal.mysql.com:/home/bk/mysql-5.1-jonas
into mc01.ndb.mysql.com:/space/jonas/mysql-5.1-jonas
parents
44d15ab1
6925d636
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
storage/ndb/test/src/NDBT_Test.cpp
storage/ndb/test/src/NDBT_Test.cpp
+12
-0
No files found.
storage/ndb/test/src/NDBT_Test.cpp
View file @
8b48a8e8
...
@@ -1110,6 +1110,7 @@ static int opt_timer;
...
@@ -1110,6 +1110,7 @@ static int opt_timer;
static
char
*
opt_remote_mgm
=
NULL
;
static
char
*
opt_remote_mgm
=
NULL
;
static
char
*
opt_testname
=
NULL
;
static
char
*
opt_testname
=
NULL
;
static
int
opt_verbose
;
static
int
opt_verbose
;
static
int
opt_seed
=
0
;
static
struct
my_option
my_long_options
[]
=
static
struct
my_option
my_long_options
[]
=
{
{
...
@@ -1129,6 +1130,9 @@ static struct my_option my_long_options[] =
...
@@ -1129,6 +1130,9 @@ static struct my_option my_long_options[] =
{
"loops"
,
'l'
,
"Number of loops"
,
{
"loops"
,
'l'
,
"Number of loops"
,
(
gptr
*
)
&
opt_loops
,
(
gptr
*
)
&
opt_loops
,
0
,
(
gptr
*
)
&
opt_loops
,
(
gptr
*
)
&
opt_loops
,
0
,
GET_INT
,
REQUIRED_ARG
,
5
,
0
,
0
,
0
,
0
,
0
},
GET_INT
,
REQUIRED_ARG
,
5
,
0
,
0
,
0
,
0
,
0
},
{
"seed"
,
1024
,
"Random seed"
,
(
gptr
*
)
&
opt_seed
,
(
gptr
*
)
&
opt_seed
,
0
,
GET_INT
,
REQUIRED_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
{
"testname"
,
'n'
,
"Name of test to run"
,
{
"testname"
,
'n'
,
"Name of test to run"
,
(
gptr
*
)
&
opt_testname
,
(
gptr
*
)
&
opt_testname
,
0
,
(
gptr
*
)
&
opt_testname
,
(
gptr
*
)
&
opt_testname
,
0
,
GET_STR
,
REQUIRED_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
GET_STR
,
REQUIRED_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
...
@@ -1224,6 +1228,14 @@ int NDBT_TestSuite::execute(int argc, const char** argv){
...
@@ -1224,6 +1228,14 @@ int NDBT_TestSuite::execute(int argc, const char** argv){
{
{
return
NDBT_ProgramExit
(
NDBT_FAILED
);
return
NDBT_ProgramExit
(
NDBT_FAILED
);
}
}
if
(
opt_seed
==
0
)
{
opt_seed
=
NdbTick_CurrentMillisecond
();
}
ndbout_c
(
"random seed: %u"
,
opt_seed
);
srand
(
opt_seed
);
srandom
(
opt_seed
);
{
{
Ndb
ndb
(
&
con
,
"TEST_DB"
);
Ndb
ndb
(
&
con
,
"TEST_DB"
);
...
...
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