Fixing comile errors on OS X

Summary: Building master on OS X has some compile errors due to implicit type conversions which generate warnings which RocksDB's build settings raise as errors.

Test Plan: It compiles!

Reviewers: ljin, igor

Reviewed By: ljin

Differential Revision: https://reviews.facebook.net/D24135
main
mike@arpaia.co 10 years ago
parent 99fb613e54
commit f0f7955497
  1. 3
      db/db_bench.cc

@ -1278,7 +1278,8 @@ class Benchmark {
method = &Benchmark::ReadRandomFast; method = &Benchmark::ReadRandomFast;
} else if (name == Slice("multireadrandom")) { } else if (name == Slice("multireadrandom")) {
entries_per_batch_ = FLAGS_batch_size; entries_per_batch_ = FLAGS_batch_size;
fprintf(stderr, "entries_per_batch_ = %ld\n", entries_per_batch_); fprintf(stderr, "entries_per_batch = %" PRIi64 "\n",
entries_per_batch_);
method = &Benchmark::MultiReadRandom; method = &Benchmark::MultiReadRandom;
} else if (name == Slice("readmissing")) { } else if (name == Slice("readmissing")) {
++key_size_; ++key_size_;

Loading…
Cancel
Save