From 0ce38fe983c5827b8424719c95f3d0aa8ef99fd4 Mon Sep 17 00:00:00 2001 From: Igor Canadi Date: Fri, 14 Nov 2014 16:33:41 -0800 Subject: [PATCH] Fix signed/unsigned compile --- util/options_builder.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/options_builder.cc b/util/options_builder.cc index 12130db52..a92a5e86e 100644 --- a/util/options_builder.cc +++ b/util/options_builder.cc @@ -158,7 +158,7 @@ void OptimizeForLevel(int read_amplification_threshold, // Now always set level multiplier to be 10 options->max_bytes_for_level_multiplier = kBytesForLevelMultiplier; - const int kMinFileSize = 2 * kBytesForOneMb; + const uint64_t kMinFileSize = 2 * kBytesForOneMb; // Allow at least 3-way parallelism for compaction between level 1 and 2. uint64_t max_file_size = max_bytes_for_level_base / 3; if (max_file_size < kMinFileSize) {