Fix Mac build failure (#1309)

main
Kien-hung Li 8 years ago committed by Islam AbdelRahman
parent 1613fa9490
commit 380e651afc
  1. 4
      utilities/persistent_cache/persistent_cache_bench.cc

@ -224,13 +224,13 @@ class CacheTierBenchmark {
// Lookup in cache
StopWatchNano timer(Env::Default(), /*auto_start=*/true);
std::unique_ptr<char[]> block;
uint64_t size;
size_t size;
Status status = cache_->Lookup(key, &block, &size);
if (!status.ok()) {
fprintf(stderr, "%s\n", status.ToString().c_str());
}
assert(status.ok());
assert(size == (uint64_t)FLAGS_iosize);
assert(size == (size_t) FLAGS_iosize);
// adjust stats
const size_t elapsed_micro = timer.ElapsedNanos() / 1000;

Loading…
Cancel
Save