mirror of
https://github.com/scylladb/scylladb.git
synced 2026-06-04 05:53:13 +00:00
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:
committed by
Avi Kivity
parent
06b15aa7e3
commit
9ba765fe6f
@@ -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
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user