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
f35f9844
Commit
f35f9844
authored
Apr 16, 2013
by
Bradley C. Kuszmaul
Committed by
Yoni Fogel
Apr 16, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
close[t:4123] Fixes #4123.
git-svn-id:
file:///svn/toku/tokudb@36832
c7de825b-a66e-492c-adef-691d508d4ae1
parent
f128c964
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
src/tests/stat64-null-txn.c
src/tests/stat64-null-txn.c
+7
-6
No files found.
src/tests/stat64-null-txn.c
View file @
f35f9844
...
@@ -21,6 +21,7 @@ test_stat64 (unsigned int N) {
...
@@ -21,6 +21,7 @@ test_stat64 (unsigned int N) {
DB
*
db
;
DB
*
db
;
DB_TXN
*
txn
;
DB_TXN
*
txn
;
r
=
db_env_create
(
&
env
,
0
);
CKERR
(
r
);
r
=
db_env_create
(
&
env
,
0
);
CKERR
(
r
);
r
=
env
->
set_redzone
(
env
,
0
);
CKERR
(
r
);
r
=
env
->
set_cachesize
(
env
,
0
,
20
*
1000000
,
1
);
r
=
env
->
set_cachesize
(
env
,
0
,
20
*
1000000
,
1
);
/* Open the environment without transactions. */
/* Open the environment without transactions. */
...
@@ -75,9 +76,9 @@ test_stat64 (unsigned int N) {
...
@@ -75,9 +76,9 @@ test_stat64 (unsigned int N) {
printf
(
"fsize=%"
PRIu64
"
\n
"
,
s
.
bt_fsize
);
printf
(
"fsize=%"
PRIu64
"
\n
"
,
s
.
bt_fsize
);
printf
(
"expected dsize=%"
PRIu64
"
\n
"
,
dsize
);
printf
(
"expected dsize=%"
PRIu64
"
\n
"
,
dsize
);
}
}
assert
(
s
.
bt_nkeys
<=
N
);
assert
(
s
.
bt_nkeys
<=
4
*
N
);
// This can probably be tightened up when we fix #3995.
assert
(
s
.
bt_ndata
<=
N
);
assert
(
s
.
bt_ndata
<=
4
*
N
);
// This can probably be tightened up when we fix #3995.
assert
(
s
.
bt_dsize
<=
dsize
);
assert
(
s
.
bt_dsize
<=
15
*
dsize
);
// This can probably be tightened up when we fix #3995.
assert
(
s
.
bt_fsize
>
N
);
assert
(
s
.
bt_fsize
>
N
);
}
}
/* r=txn->commit(txn, 0); CKERR(r); */
/* r=txn->commit(txn, 0); CKERR(r); */
...
@@ -108,9 +109,9 @@ test_stat64 (unsigned int N) {
...
@@ -108,9 +109,9 @@ test_stat64 (unsigned int N) {
printf
(
"fsize=%"
PRIu64
"
\n
"
,
s
.
bt_fsize
);
printf
(
"fsize=%"
PRIu64
"
\n
"
,
s
.
bt_fsize
);
printf
(
"expected dsize=%"
PRIu64
"
\n
"
,
dsize
);
printf
(
"expected dsize=%"
PRIu64
"
\n
"
,
dsize
);
}
}
assert
(
s
.
bt_nkeys
==
N
);
assert
(
s
.
bt_nkeys
<=
4
*
N
);
// This can probably be tightened up when we fix #3995.
assert
(
s
.
bt_ndata
==
N
);
assert
(
s
.
bt_ndata
<=
4
*
N
);
// This can probably be tightened up when we fix #3995.
assert
(
s
.
bt_dsize
==
dsize
);
assert
(
s
.
bt_dsize
<=
15
*
dsize
);
// This can probably be tightened up when we fix #3995.
assert
(
s
.
bt_fsize
>
N
);
assert
(
s
.
bt_fsize
>
N
);
}
}
/* r=txn->commit(txn, 0); CKERR(r); */
/* r=txn->commit(txn, 0); CKERR(r); */
...
...
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