From 9ba765fe6f6807c9d5235dec58ea581f4bdce070 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20=C3=81vila=20de=20Esp=C3=ADndola?= Date: Wed, 12 Aug 2020 16:29:12 -0700 Subject: [PATCH] sstables: Move compaction_strategy_impl::get_value out of line MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Rafael Ávila de Espíndola Message-Id: <20200812232915.442564-3-espindola@scylladb.com> --- sstables/compaction_strategy.cc | 8 ++++++++ sstables/compaction_strategy_impl.hh | 8 +------- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/sstables/compaction_strategy.cc b/sstables/compaction_strategy.cc index cec7014d6b..b42d8a8638 100644 --- a/sstables/compaction_strategy.cc +++ b/sstables/compaction_strategy.cc @@ -473,6 +473,14 @@ compaction_strategy_impl::get_reshaping_job(std::vector input, s return compaction_descriptor(); } +std::optional compaction_strategy_impl::get_value(const std::map& options, const sstring& name) { + auto it = options.find(name); + if (it == options.end()) { + return std::nullopt; + } + return it->second; +} + } // namespace sstables size_tiered_backlog_tracker::inflight_component diff --git a/sstables/compaction_strategy_impl.hh b/sstables/compaction_strategy_impl.hh index f5c119e3c8..159dff8a64 100644 --- a/sstables/compaction_strategy_impl.hh +++ b/sstables/compaction_strategy_impl.hh @@ -48,13 +48,7 @@ protected: float _tombstone_threshold = DEFAULT_TOMBSTONE_THRESHOLD; db_clock::duration _tombstone_compaction_interval = DEFAULT_TOMBSTONE_COMPACTION_INTERVAL(); public: - static std::optional get_value(const std::map& options, const sstring& name) { - auto it = options.find(name); - if (it == options.end()) { - return std::nullopt; - } - return it->second; - } + static std::optional get_value(const std::map& options, const sstring& name); protected: compaction_strategy_impl() = default; explicit compaction_strategy_impl(const std::map& options) {