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
52f2c043
Commit
52f2c043
authored
Jun 08, 2009
by
Rich Prohaska
Committed by
Yoni Fogel
Apr 16, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
simplify. addresses #1789
git-svn-id:
file:///svn/toku/tokudb@12573
c7de825b-a66e-492c-adef-691d508d4ae1
parent
421c404e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
13 deletions
+2
-13
linux/tests/test-max-data.c
linux/tests/test-max-data.c
+2
-13
No files found.
linux/tests/test-max-data.c
View file @
52f2c043
...
@@ -3,9 +3,6 @@
...
@@ -3,9 +3,6 @@
#include <unistd.h>
#include <unistd.h>
#include <assert.h>
#include <assert.h>
#include <string.h>
#include <string.h>
#if defined(__linux__)
#include <bits/wordsize.h>
#endif
#include "toku_os.h"
#include "toku_os.h"
int
main
(
int
argc
,
char
*
argv
[])
{
int
main
(
int
argc
,
char
*
argv
[])
{
...
@@ -26,18 +23,10 @@ int main(int argc, char *argv[]) {
...
@@ -26,18 +23,10 @@ int main(int argc, char *argv[]) {
uint64_t
maxdata
;
uint64_t
maxdata
;
int
r
=
toku_os_get_max_process_data_size
(
&
maxdata
);
int
r
=
toku_os_get_max_process_data_size
(
&
maxdata
);
assert
(
r
==
0
);
assert
(
r
==
0
);
if
(
verbose
)
printf
(
"maxdata=%"
PRIu64
"
\n
"
,
maxdata
);
if
(
verbose
)
printf
(
"maxdata=%"
PRIu64
"
0x%"
PRIx64
"
\n
"
,
maxdata
,
maxdata
);
// check the data size
// check the data size
#if defined(__linux__)
#if __x86_64__
#if __WORDSIZE == 64
assert
(
maxdata
>
(
1ULL
<<
32
));
#elif __WORDSIZE == 32
assert
(
maxdata
<
(
1ULL
<<
32
));
#else
#error
#endif
#elif __x86_64__
assert
(
maxdata
>
(
1ULL
<<
32
));
assert
(
maxdata
>
(
1ULL
<<
32
));
#elif __i386__
#elif __i386__
assert
(
maxdata
<
(
1ULL
<<
32
));
assert
(
maxdata
<
(
1ULL
<<
32
));
...
...
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