Skip to content

Commit 6827d3b

Browse files
committed
FT-312 compile big-shutdown on osx
1 parent 31a9411 commit 6827d3b

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/tests/big-shutdown.cc

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -94,13 +94,8 @@ PATENT RIGHTS GRANT:
9494
// function.
9595

9696
#include "test.h"
97-
#include <endian.h>
9897
#include <toku_time.h>
9998

100-
#ifndef htobe64
101-
#define htobe64(x) __bswap_64(x)
102-
#endif
103-
10499
// Insert max_rows key/val pairs into the db
105100
static void do_inserts(DB_ENV *env, DB *db, uint64_t max_rows, size_t val_size) {
106101
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)
112107
for (uint64_t i = 1; i <= max_rows; i++) {
113108
// pick a sequential key but it does not matter for this test.
114109
uint64_t k[2] = {
115-
htobe64(i), random64(),
110+
htonl(i), random64(),
116111
};
117112
DBT key = { .data = k, .size = sizeof k };
118113
DBT val = { .data = val_data, .size = (uint32_t) val_size };

0 commit comments

Comments
 (0)