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
d72309c6
Commit
d72309c6
authored
Dec 10, 2007
by
Bradley C. Kuszmaul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use the seed in the right way
git-svn-id:
file:///svn/tokudb@1028
c7de825b-a66e-492c-adef-691d508d4ae1
parent
11ab266b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
src/tests/test_db_assoc3.c
src/tests/test_db_assoc3.c
+4
-4
No files found.
src/tests/test_db_assoc3.c
View file @
d72309c6
...
...
@@ -356,7 +356,7 @@ void step_name (void) {
cursor_count_n_items
++
;
}
else
if
(
r
==
DB_NOTFOUND
)
{
// Got to the end.
printf
(
"%s:%d Got to end count=%d curscount=%d
\n
"
,
__FILE__
,
__LINE__
,
calc_n_items
,
cursor_count_n_items
);
//
printf("%s:%d Got to end count=%d curscount=%d\n", __FILE__, __LINE__, calc_n_items, cursor_count_n_items);
assert
(
cursor_count_n_items
==
calc_n_items
);
r
=
name_cursor
->
c_get
(
name_cursor
,
&
nc_key
,
&
nc_data
,
DB_FIRST
);
if
(
r
==
DB_NOTFOUND
)
{
...
...
@@ -420,7 +420,6 @@ int main (int argc, const char *argv[]) {
errno
=
0
;
char
*
endptr
;
useseed
=
strtoul
(
argv
[
0
],
&
endptr
,
10
);
printf
(
"Got %d
\n
"
,
useseed
);
if
(
errno
!=
0
||
*
endptr
!=
0
||
endptr
==
argv
[
0
])
{
usage
(
progname
);
}
...
...
@@ -428,6 +427,9 @@ int main (int argc, const char *argv[]) {
argc
--
;
argv
++
;
}
printf
(
"seed=%d
\n
"
,
useseed
);
srandom
(
useseed
);
switch
(
mode
)
{
case
MODE_DEFAULT
:
system
(
"rm -rf "
DIR
);
...
...
@@ -441,8 +443,6 @@ int main (int argc, const char *argv[]) {
break
;
case
MODE_MORE
:
create_databases
();
printf
(
"seed=%d
\n
"
,
useseed
);
srandom
(
useseed
);
calc_n_items
=
count_all_items
=
count_entries
(
dbp
);
//printf("%s:%d n_items initially=%d\n", __FILE__, __LINE__, count_all_items);
{
...
...
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