diff --git a/sstables/size_tiered_compaction_strategy.hh b/sstables/size_tiered_compaction_strategy.hh index edabf10c95..6abc3d6423 100644 --- a/sstables/size_tiered_compaction_strategy.hh +++ b/sstables/size_tiered_compaction_strategy.hh @@ -164,7 +164,8 @@ public: // Return the most interesting bucket for a set of sstables static std::vector - most_interesting_bucket(const std::vector& candidates, int min_threshold, int max_threshold); + most_interesting_bucket(const std::vector& candidates, int min_threshold, int max_threshold, + size_tiered_compaction_strategy_options options = {}); }; inline std::vector> @@ -331,8 +332,9 @@ inline int64_t size_tiered_compaction_strategy::estimated_pending_compactions(co } inline std::vector -size_tiered_compaction_strategy::most_interesting_bucket(const std::vector& candidates, int min_threshold, int max_threshold) { - size_tiered_compaction_strategy cs; +size_tiered_compaction_strategy::most_interesting_bucket(const std::vector& candidates, + int min_threshold, int max_threshold, size_tiered_compaction_strategy_options options) { + size_tiered_compaction_strategy cs(options); auto buckets = cs.get_buckets(candidates);