sstables: Move compaction_strategy_impl::get_value out of line

Signed-off-by: Rafael Ávila de Espíndola <espindola@scylladb.com>
Message-Id: <20200812232915.442564-3-espindola@scylladb.com>
This commit is contained in:
Rafael Ávila de Espíndola
2020-08-12 16:29:12 -07:00
committed by Avi Kivity
parent 06b15aa7e3
commit 9ba765fe6f
2 changed files with 9 additions and 7 deletions

View File

@@ -473,6 +473,14 @@ compaction_strategy_impl::get_reshaping_job(std::vector<shared_sstable> input, s
return compaction_descriptor();
}
std::optional<sstring> compaction_strategy_impl::get_value(const std::map<sstring, sstring>& 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

View File

@@ -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<sstring> get_value(const std::map<sstring, sstring>& options, const sstring& name) {
auto it = options.find(name);
if (it == options.end()) {
return std::nullopt;
}
return it->second;
}
static std::optional<sstring> get_value(const std::map<sstring, sstring>& options, const sstring& name);
protected:
compaction_strategy_impl() = default;
explicit compaction_strategy_impl(const std::map<sstring, sstring>& options) {