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
9d871dc7
Commit
9d871dc7
authored
Dec 13, 2010
by
Dave Wells
Committed by
Yoni Fogel
Apr 16, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix issue with test
git-svn-id:
file:///svn/toku/tokudb@26608
c7de825b-a66e-492c-adef-691d508d4ae1
parent
8055e233
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
src/tests/recovery_fileops_stress.c
src/tests/recovery_fileops_stress.c
+8
-5
No files found.
src/tests/recovery_fileops_stress.c
View file @
9d871dc7
...
@@ -448,6 +448,7 @@ static void env_startup(int recovery_flags) {
...
@@ -448,6 +448,7 @@ static void env_startup(int recovery_flags) {
int
r
;
int
r
;
int
envflags
=
DB_INIT_LOCK
|
DB_INIT_LOG
|
DB_INIT_MPOOL
|
DB_INIT_TXN
|
DB_CREATE
|
DB_PRIVATE
|
recovery_flags
;
int
envflags
=
DB_INIT_LOCK
|
DB_INIT_LOG
|
DB_INIT_MPOOL
|
DB_INIT_TXN
|
DB_CREATE
|
DB_PRIVATE
|
recovery_flags
;
r
=
db_env_create
(
&
env
,
0
);
CKERR
(
r
);
r
=
db_env_create
(
&
env
,
0
);
CKERR
(
r
);
db_env_enable_engine_status
(
0
);
// disable engine status on crash because test is expected to fail
r
=
env
->
set_redzone
(
env
,
0
);
CKERR
(
r
);
r
=
env
->
set_redzone
(
env
,
0
);
CKERR
(
r
);
env
->
set_errfile
(
env
,
stderr
);
env
->
set_errfile
(
env
,
stderr
);
r
=
env
->
open
(
env
,
ENVDIR
,
envflags
,
S_IRWXU
+
S_IRWXG
+
S_IRWXO
);
CKERR
(
r
);
r
=
env
->
open
(
env
,
ENVDIR
,
envflags
,
S_IRWXU
+
S_IRWXG
+
S_IRWXO
);
CKERR
(
r
);
...
@@ -511,16 +512,18 @@ static void verify_sequential_rows(DB* compare_db, int64_t firstkey, int64_t num
...
@@ -511,16 +512,18 @@ static void verify_sequential_rows(DB* compare_db, int64_t firstkey, int64_t num
dbt_init
(
&
key2
,
&
k
,
sizeof
(
k
));
dbt_init
(
&
key2
,
&
k
,
sizeof
(
k
));
dbt_init
(
&
val2
,
&
v
,
sizeof
(
v
));
dbt_init
(
&
val2
,
&
v
,
sizeof
(
v
));
k
=
firstkey
;
//
k = firstkey;
v
=
generate_val
(
k
);
//
v = generate_val(k);
r1
=
c1
->
c_get
(
c1
,
&
key2
,
&
val2
,
DB_SET
);
//
r1 = c1->c_get(c1, &key2, &val2, DB_SET);
CKERR
(
r1
);
//
CKERR(r1);
int64_t
i
;
int64_t
i
;
for
(
i
=
1
;
i
<
numkeys
;
i
++
)
{
for
(
i
=
0
;
i
<
numkeys
;
i
++
)
{
k
=
i
+
firstkey
;
k
=
i
+
firstkey
;
v
=
generate_val
(
k
);
v
=
generate_val
(
k
);
r1
=
c1
->
c_get
(
c1
,
&
key1
,
&
val1
,
DB_NEXT
);
r1
=
c1
->
c_get
(
c1
,
&
key1
,
&
val1
,
DB_NEXT
);
// printf("k = %"PRIu64", v = %"PRIu64", key = %"PRIu64", val = %"PRIu64"\n",
// k, v, *((int64_t *)(key1.data)), *((int64_t *)(val1.data)));
assert
(
r1
==
0
);
assert
(
r1
==
0
);
rval
=
verify_identical_dbts
(
&
key1
,
&
key2
)
|
rval
=
verify_identical_dbts
(
&
key1
,
&
key2
)
|
verify_identical_dbts
(
&
val1
,
&
val2
);
verify_identical_dbts
(
&
val1
,
&
val2
);
...
...
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