Fix build failure

main
Igor Canadi 10 years ago
parent 423dee8418
commit ae82849bc9
  1. 14
      db/db_bench.cc

@ -2396,8 +2396,8 @@ class Benchmark {
if (status.ok()) { if (status.ok()) {
++found; ++found;
} else if (!status.IsNotFound()) { } else if (!status.IsNotFound()) {
fprintf(stderr, fprintf(stderr, "Get returned an error: %s\n",
"Get returned an error: %s\n" status.ToString().c_str()); status.ToString().c_str());
abort(); abort();
} }
if (key_rand >= FLAGS_num) { if (key_rand >= FLAGS_num) {
@ -2446,7 +2446,7 @@ class Benchmark {
if (s.ok()) { if (s.ok()) {
found++; found++;
} else if (!s.IsNotFound()) { } else if (!s.IsNotFound()) {
fprintf(stderr, "Get returned an error: %s\n" s.ToString().c_str()); fprintf(stderr, "Get returned an error: %s\n", s.ToString().c_str());
abort(); abort();
} }
thread->stats.FinishedOps(db_with_cfh, db_with_cfh->db, 1); thread->stats.FinishedOps(db_with_cfh, db_with_cfh->db, 1);
@ -2936,8 +2936,8 @@ class Benchmark {
if (status.ok()) { if (status.ok()) {
++found; ++found;
} else if (!status.IsNotFound()) { } else if (!status.IsNotFound()) {
fprintf(stderr, fprintf(stderr, "Get returned an error: %s\n",
"Get returned an error: %s\n" status.ToString().c_str()); status.ToString().c_str());
abort(); abort();
} }
@ -2975,8 +2975,8 @@ class Benchmark {
if (status.ok()) { if (status.ok()) {
++found; ++found;
} else if (!status.IsNotFound()) { } else if (!status.IsNotFound()) {
fprintf(stderr, fprintf(stderr, "Get returned an error: %s\n",
"Get returned an error: %s\n" status.ToString().c_str()); status.ToString().c_str());
abort(); abort();
} else { } else {
// If not existing, then just assume an empty string of data // If not existing, then just assume an empty string of data

Loading…
Cancel
Save