diff --git a/cache/cache_bench_tool.cc b/cache/cache_bench_tool.cc index 4d8939041..c2fb64fe2 100644 --- a/cache/cache_bench_tool.cc +++ b/cache/cache_bench_tool.cc @@ -220,7 +220,7 @@ class CacheBench { if (skewed_) { uint64_t max_key = max_key_; while (max_key >>= 1) max_log_++; - if (max_key > (1u << max_log_)) max_log_++; + if (max_key > (static_cast(1) << max_log_)) max_log_++; } if (FLAGS_use_clock_cache) { @@ -380,7 +380,8 @@ class CacheBench { << "Average key size: " << (1.0 * total_key_size / total_entry_count) << "\n" << "Average charge: " - << BytesToHumanString(1.0 * total_charge / total_entry_count) + << BytesToHumanString(static_cast( + 1.0 * total_charge / total_entry_count)) << "\n" << "Unique deleters: " << deleters.size() << "\n"; *stats_report = ostr.str(); diff --git a/db_stress_tool/db_stress_test_base.cc b/db_stress_tool/db_stress_test_base.cc index 0dbc7c3e1..ef0b6823b 100644 --- a/db_stress_tool/db_stress_test_base.cc +++ b/db_stress_tool/db_stress_test_base.cc @@ -151,7 +151,8 @@ std::shared_ptr StressTest::NewCache(size_t capacity, } if (FLAGS_secondary_cache_fault_one_in > 0) { secondary_cache = std::make_shared( - secondary_cache, FLAGS_seed, FLAGS_secondary_cache_fault_one_in); + secondary_cache, static_cast(FLAGS_seed), + FLAGS_secondary_cache_fault_one_in); } opts.secondary_cache = secondary_cache; } diff --git a/tools/db_bench_tool.cc b/tools/db_bench_tool.cc index 16019dd29..93b780541 100644 --- a/tools/db_bench_tool.cc +++ b/tools/db_bench_tool.cc @@ -236,9 +236,9 @@ IF_ROCKSDB_LITE("", "\tmemstats -- Print memtable stats\n" "\tsstables -- Print sstable info\n" "\theapprofile -- Dump a heap profile (if supported by this port)\n" -#ifndef ROCKSDB_LITE +IF_ROCKSDB_LITE("", "\treplay -- replay the trace file specified with trace_file\n" -#endif // ROCKSDB_LITE +) "\tgetmergeoperands -- Insert lots of merge records which are a list of " "sorted ints for a key and then compare performance of lookup for another " "key "