Commit 14674910 authored by Rich Prohaska's avatar Rich Prohaska Committed by Yoni Fogel

fix the nightly build, remove /dev/null tracing, refs[t:2309]

git-svn-id: file:///svn/toku/tokudb@17036 c7de825b-a66e-492c-adef-691d508d4ae1
parent 50706594
...@@ -222,7 +222,6 @@ static void scanscan_lwc (void) { ...@@ -222,7 +222,6 @@ static void scanscan_lwc (void) {
#endif #endif
static void scanscan_range (void) { static void scanscan_range (void) {
int fnull = open(DEV_NULL_FILE, O_WRONLY); assert(fnull >= 0); // use with strace
int r; int r;
double tstart = gettime(); double tstart = gettime();
DBC *dbc; DBC *dbc;
...@@ -241,9 +240,7 @@ static void scanscan_range (void) { ...@@ -241,9 +240,7 @@ static void scanscan_range (void) {
DBT val; memset(&val, 0, sizeof val); DBT val; memset(&val, 0, sizeof val);
// set the cursor to the random key // set the cursor to the random key
write(fnull, "s", 1);
r = dbc->c_get(dbc, &key, &val, DB_SET_RANGE+lock_flag); assert(r==0); r = dbc->c_get(dbc, &key, &val, DB_SET_RANGE+lock_flag); assert(r==0);
write(fnull, "e", 1);
#if 0 #if 0
long rowcounter=0; long rowcounter=0;
...@@ -260,8 +257,6 @@ static void scanscan_range (void) { ...@@ -260,8 +257,6 @@ static void scanscan_range (void) {
double tend = gettime(); double tend = gettime();
double tdiff = tend-tstart; double tdiff = tend-tstart;
printf("Range %d %f\n", n_experiments, tdiff); printf("Range %d %f\n", n_experiments, tdiff);
close(fnull);
} }
#ifdef TOKUDB #ifdef TOKUDB
......
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