Commit 6827d3bd authored by Rich Prohaska's avatar Rich Prohaska

FT-312 compile big-shutdown on osx

parent 31a94118
......@@ -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] = {
htobe64(i), random64(),
htonl(i), random64(),
};
DBT key = { .data = k, .size = sizeof k };
DBT val = { .data = val_data, .size = (uint32_t) val_size };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment