Commit d406bb4f authored by Yoni Fogel's avatar Yoni Fogel

Addresses #1514 Port #1514 to BDB

git-svn-id: file:///svn/toku/tokudb@9766 c7de825b-a66e-492c-adef-691d508d4ae1
parent 21f0e9f1
...@@ -145,11 +145,15 @@ static void benchmark_setup (void) { ...@@ -145,11 +145,15 @@ static void benchmark_setup (void) {
} }
#if defined(TOKUDB)
static void test1514(void); static void test1514(void);
#endif
static void benchmark_shutdown (void) { static void benchmark_shutdown (void) {
int r; int r;
#if defined(TOKUDB)
if (do_1514_point_query) test1514(); if (do_1514_point_query) test1514();
#endif
if (do_transactions && singlex) { if (do_transactions && singlex) {
#if defined(TOKUDB) #if defined(TOKUDB)
struct txn_stat *s; struct txn_stat *s;
...@@ -313,6 +317,7 @@ static int print_usage (const char *argv0) { ...@@ -313,6 +317,7 @@ static int print_usage (const char *argv0) {
return 1; return 1;
} }
#if defined(TOKUDB)
static int static int
nothing(DBT const* UU(key), DBT const* UU(val), void* UU(extra)) { nothing(DBT const* UU(key), DBT const* UU(val), void* UU(extra)) {
return 0; return 0;
...@@ -343,6 +348,7 @@ test1514(void) { ...@@ -343,6 +348,7 @@ test1514(void) {
if (verbose) printf("(#1514) Single Point Query %9.6fs\n", tdiff(&t2, &t1)); if (verbose) printf("(#1514) Single Point Query %9.6fs\n", tdiff(&t2, &t1));
} }
#endif
int main (int argc, const char *argv[]) { int main (int argc, const char *argv[]) {
struct timeval t1,t2,t3; struct timeval t1,t2,t3;
...@@ -411,8 +417,10 @@ int main (int argc, const char *argv[]) { ...@@ -411,8 +417,10 @@ int main (int argc, const char *argv[]) {
} else if (strcmp(arg, "--env") == 0) { } else if (strcmp(arg, "--env") == 0) {
if (i+1 >= argc) return print_usage(argv[0]); if (i+1 >= argc) return print_usage(argv[0]);
dbdir = argv[++i]; dbdir = argv[++i];
#if defined(TOKUDB)
} else if (strcmp(arg, "--1514") == 0) { } else if (strcmp(arg, "--1514") == 0) {
do_1514_point_query=1; do_1514_point_query=1;
#endif
} else if (strcmp(arg, "--prelock") == 0) { } else if (strcmp(arg, "--prelock") == 0) {
prelock=1; prelock=1;
} else if (strcmp(arg, "--prelockflag") == 0) { } else if (strcmp(arg, "--prelockflag") == 0) {
......
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