diff --git a/tools/db_bench_tool.cc b/tools/db_bench_tool.cc index cb5b5a38a..8344669b7 100644 --- a/tools/db_bench_tool.cc +++ b/tools/db_bench_tool.cc @@ -2397,8 +2397,8 @@ class Benchmark { return nullptr; } if (FLAGS_use_clock_cache) { - auto cache = - NewClockCache(static_cast(capacity), FLAGS_cache_numshardbits); + auto cache = NewClockCache(static_cast(capacity), + FLAGS_cache_numshardbits); if (!cache) { fprintf(stderr, "Clock cache not supported."); exit(1); @@ -2406,10 +2406,8 @@ class Benchmark { return cache; } else { return NewLRUCache( - static_cast(capacity), - FLAGS_cache_numshardbits, - false /*strict_capacity_limit*/, - FLAGS_cache_high_pri_pool_ratio); + static_cast(capacity), FLAGS_cache_numshardbits, + false /*strict_capacity_limit*/, FLAGS_cache_high_pri_pool_ratio); } } @@ -3608,11 +3606,9 @@ class Benchmark { if (FLAGS_max_bytes_for_level_multiplier_additional_v.size() > 0) { if (FLAGS_max_bytes_for_level_multiplier_additional_v.size() != static_cast(FLAGS_num_levels)) { - fprintf( - stderr, - "Insufficient number of fanouts specified %d\n", - static_cast( - FLAGS_max_bytes_for_level_multiplier_additional_v.size())); + fprintf(stderr, "Insufficient number of fanouts specified %d\n", + static_cast( + FLAGS_max_bytes_for_level_multiplier_additional_v.size())); exit(1); } options.max_bytes_for_level_multiplier_additional = @@ -5168,9 +5164,9 @@ class Benchmark { options.iterate_lower_bound = &lower_bound; } else { auto min_num = - std::min(FLAGS_num, seek_pos + FLAGS_max_scan_distance); - GenerateKeyFromInt( - static_cast(min_num), FLAGS_num, &upper_bound); + std::min(FLAGS_num, seek_pos + FLAGS_max_scan_distance); + GenerateKeyFromInt(static_cast(min_num), FLAGS_num, + &upper_bound); options.iterate_upper_bound = &upper_bound; } }