mirror of
https://github.com/facebook/rocksdb.git
synced 2024-11-25 22:44:05 +00:00
Formatting fixes in db_bench_tool (#5525)
Summary: Formatting fixes in db_bench_tool that were accidentally omitted Pull Request resolved: https://github.com/facebook/rocksdb/pull/5525 Test Plan: Unit tests Differential Revision: D16078516 Pulled By: elipoz fbshipit-source-id: bf8df0e3f08092a91794ebf285396d9b8a335bb9
This commit is contained in:
parent
1e87f2b68b
commit
3e6c185381
|
@ -2397,8 +2397,8 @@ class Benchmark {
|
|||
return nullptr;
|
||||
}
|
||||
if (FLAGS_use_clock_cache) {
|
||||
auto cache =
|
||||
NewClockCache(static_cast<size_t>(capacity), FLAGS_cache_numshardbits);
|
||||
auto cache = NewClockCache(static_cast<size_t>(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<size_t>(capacity),
|
||||
FLAGS_cache_numshardbits,
|
||||
false /*strict_capacity_limit*/,
|
||||
FLAGS_cache_high_pri_pool_ratio);
|
||||
static_cast<size_t>(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<unsigned int>(FLAGS_num_levels)) {
|
||||
fprintf(
|
||||
stderr,
|
||||
"Insufficient number of fanouts specified %d\n",
|
||||
static_cast<int>(
|
||||
FLAGS_max_bytes_for_level_multiplier_additional_v.size()));
|
||||
fprintf(stderr, "Insufficient number of fanouts specified %d\n",
|
||||
static_cast<int>(
|
||||
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<uint64_t>(min_num), FLAGS_num, &upper_bound);
|
||||
std::min(FLAGS_num, seek_pos + FLAGS_max_scan_distance);
|
||||
GenerateKeyFromInt(static_cast<uint64_t>(min_num), FLAGS_num,
|
||||
&upper_bound);
|
||||
options.iterate_upper_bound = &upper_bound;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue