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
f7779566
Commit
f7779566
authored
Nov 11, 2011
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
1b7d5f0a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
8 deletions
+9
-8
src/tests/stat64-null-txn.c
src/tests/stat64-null-txn.c
+7
-6
src/tests/stat64.c
src/tests/stat64.c
+2
-2
No files found.
src/tests/stat64-null-txn.c
View file @
f7779566
...
...
@@ -21,6 +21,7 @@ test_stat64 (unsigned int N) {
DB
*
db
;
DB_TXN
*
txn
;
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
);
/* Open the environment without transactions. */
...
...
@@ -75,9 +76,9 @@ test_stat64 (unsigned int N) {
printf
(
"fsize=%"
PRIu64
"
\n
"
,
s
.
bt_fsize
);
printf
(
"expected dsize=%"
PRIu64
"
\n
"
,
dsize
);
}
assert
(
s
.
bt_nkeys
<=
N
);
assert
(
s
.
bt_ndata
<=
N
);
assert
(
s
.
bt_dsize
<=
dsize
);
assert
(
s
.
bt_nkeys
<=
4
*
N
);
// This can probably be tightened up when we fix #3995.
assert
(
s
.
bt_ndata
<=
4
*
N
);
// This can probably be tightened up when we fix #3995.
assert
(
s
.
bt_dsize
<=
15
*
dsize
);
// This can probably be tightened up when we fix #3995.
assert
(
s
.
bt_fsize
>
N
);
}
/* r=txn->commit(txn, 0); CKERR(r); */
...
...
@@ -108,9 +109,9 @@ test_stat64 (unsigned int N) {
printf
(
"fsize=%"
PRIu64
"
\n
"
,
s
.
bt_fsize
);
printf
(
"expected dsize=%"
PRIu64
"
\n
"
,
dsize
);
}
assert
(
s
.
bt_nkeys
==
N
);
assert
(
s
.
bt_ndata
==
N
);
assert
(
s
.
bt_dsize
==
dsize
);
assert
(
s
.
bt_nkeys
<=
4
*
N
);
// This can probably be tightened up when we fix #3995.
assert
(
s
.
bt_ndata
<=
4
*
N
);
// This can probably be tightened up when we fix #3995.
assert
(
s
.
bt_dsize
<=
15
*
dsize
);
// This can probably be tightened up when we fix #3995.
assert
(
s
.
bt_fsize
>
N
);
}
/* r=txn->commit(txn, 0); CKERR(r); */
...
...
src/tests/stat64.c
View file @
f7779566
...
...
@@ -71,8 +71,8 @@ test_stat64 (unsigned int N) {
printf
(
"fsize=%"
PRIu64
"
\n
"
,
s
.
bt_fsize
);
printf
(
"expected dsize=%"
PRIu64
"
\n
"
,
dsize
);
}
assert
(
s
.
bt_nkeys
<=
4
*
N
);
// This can probably be tightened up when we fix #3995.
assert
(
s
.
bt_ndata
<=
4
*
N
);
// This can probably be tightened up when we fix #3995.
assert
(
s
.
bt_nkeys
<=
4
*
N
);
// This can probably be tightened up when we fix #3995.
assert
(
s
.
bt_ndata
<=
4
*
N
);
// This can probably be tightened up when we fix #3995.
assert
(
s
.
bt_dsize
<=
16
*
dsize
);
// This can probably be tightened up when we fix #3995.
assert
(
s
.
bt_fsize
>
N
);
}
...
...
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