tools/db_bench_tool.cc use uint64_t instead of size_t (#9800)

Summary:
to fix compilation for 32bit

Pull Request resolved: https://github.com/facebook/rocksdb/pull/9800

Reviewed By: riversand963

Differential Revision: D35404447

fbshipit-source-id: 6a1185bb38f3a718357aa120e3b26a1ea77f023d
main
Duncan Bellamy 3 years ago committed by Facebook GitHub Bot
parent f337542948
commit 25e31d1a94
  1. 4
      tools/db_bench_tool.cc

@ -6397,9 +6397,9 @@ class Benchmark {
} }
// Pick a Iterator to use // Pick a Iterator to use
size_t db_idx_to_use = uint64_t db_idx_to_use =
(db_.db == nullptr) (db_.db == nullptr)
? (size_t{thread->rand.Next()} % multi_dbs_.size()) ? (uint64_t{thread->rand.Next()} % multi_dbs_.size())
: 0; : 0;
std::unique_ptr<Iterator> single_iter; std::unique_ptr<Iterator> single_iter;
Iterator* iter_to_use; Iterator* iter_to_use;

Loading…
Cancel
Save