So it can be used in the next patch that will refactor compaction_state out of class compaction_manager. Signed-off-by: Benny Halevy <bhalevy@scylladb.com>
25 lines
413 B
C++
25 lines
413 B
C++
/*
|
|
* Copyright (C) 2021-present ScyllaDB
|
|
*
|
|
*/
|
|
|
|
/*
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "compaction/compaction_fwd.hh"
|
|
|
|
namespace compaction {
|
|
|
|
// Used by manager to set goals and constraints on compaction strategies
|
|
class strategy_control {
|
|
public:
|
|
virtual ~strategy_control() {}
|
|
virtual bool has_ongoing_compaction(table_state& table_s) const noexcept = 0;
|
|
};
|
|
|
|
}
|
|
|