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
6827d3bd
Commit
6827d3bd
authored
Aug 30, 2014
by
Rich Prohaska
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
FT-312 compile big-shutdown on osx
parent
31a94118
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
6 deletions
+1
-6
src/tests/big-shutdown.cc
src/tests/big-shutdown.cc
+1
-6
No files found.
src/tests/big-shutdown.cc
View file @
6827d3bd
...
...
@@ -94,13 +94,8 @@ PATENT RIGHTS GRANT:
// function.
#include "test.h"
#include <endian.h>
#include <toku_time.h>
#ifndef htobe64
#define htobe64(x) __bswap_64(x)
#endif
// Insert max_rows key/val pairs into the db
static
void
do_inserts
(
DB_ENV
*
env
,
DB
*
db
,
uint64_t
max_rows
,
size_t
val_size
)
{
char
val_data
[
val_size
];
memset
(
val_data
,
0
,
val_size
);
...
...
@@ -112,7 +107,7 @@ static void do_inserts(DB_ENV *env, DB *db, uint64_t max_rows, size_t val_size)
for
(
uint64_t
i
=
1
;
i
<=
max_rows
;
i
++
)
{
// pick a sequential key but it does not matter for this test.
uint64_t
k
[
2
]
=
{
hto
be64
(
i
),
random64
(),
hto
nl
(
i
),
random64
(),
};
DBT
key
=
{
.
data
=
k
,
.
size
=
sizeof
k
};
DBT
val
=
{
.
data
=
val_data
,
.
size
=
(
uint32_t
)
val_size
};
...
...
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