diff --git a/CMakeLists.txt b/CMakeLists.txt index ea939fcee..7d8fb9683 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -193,6 +193,7 @@ set(SOURCES util/arena.cc util/bloom.cc util/build_version.cc + util/cf_options.cc util/clock_cache.cc util/coding.cc util/compaction_job_stats_impl.cc @@ -221,7 +222,6 @@ set(SOURCES util/log_buffer.cc util/memenv.cc util/murmurhash.cc - util/mutable_cf_options.cc util/options.cc util/options_helper.cc util/options_parser.cc diff --git a/db/db_impl.cc b/db/db_impl.cc index 03510ccad..2a8c8f2eb 100644 --- a/db/db_impl.cc +++ b/db/db_impl.cc @@ -79,6 +79,7 @@ #include "table/two_level_iterator.h" #include "util/autovector.h" #include "util/build_version.h" +#include "util/cf_options.h" #include "util/coding.h" #include "util/compression.h" #include "util/crc32c.h" diff --git a/src.mk b/src.mk index 35a877575..9b2c9b981 100644 --- a/src.mk +++ b/src.mk @@ -88,7 +88,7 @@ LIB_SOURCES = \ util/arena.cc \ util/bloom.cc \ util/build_version.cc \ - util/clock_cache.cc \ + util/clock_cache.cc \ util/coding.cc \ util/comparator.cc \ util/compaction_job_stats_impl.cc \ diff --git a/table/block_test.cc b/table/block_test.cc index d8aef23ef..712a430de 100644 --- a/table/block_test.cc +++ b/table/block_test.cc @@ -232,7 +232,7 @@ class BlockReadAmpBitmapSlowAndAccurate { // Return true if any byte in this range was Marked bool IsAnyInRangeMarked(size_t start_offset, size_t end_offset) { - auto it = marked_ranges_.lower_bound(std::make_pair(start_offset, 0)); + auto it = marked_ranges_.lower_bound(std::make_pair(start_offset, static_cast(0))); if (it == marked_ranges_.end()) { return false; } @@ -292,7 +292,7 @@ TEST_F(BlockTest, BlockReadAmpBitmap) { random_entry_offsets.resize( std::distance(random_entry_offsets.begin(), it)); - std::vector> random_entries; + std::vector> random_entries; for (size_t i = 0; i < random_entry_offsets.size(); i++) { size_t entry_start = random_entry_offsets[i]; size_t entry_end; @@ -307,7 +307,7 @@ TEST_F(BlockTest, BlockReadAmpBitmap) { for (size_t i = 0; i < random_entries.size(); i++) { auto ¤t_entry = random_entries[rnd.Next() % random_entries.size()]; - read_amp_bitmap.Mark(current_entry.first, current_entry.second); + read_amp_bitmap.Mark(static_cast(current_entry.first), static_cast(current_entry.second)); read_amp_slow_and_accurate.Mark(current_entry.first, current_entry.second);