mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-25 02:50:33 +00:00
To use it both from compaction_manager and compaction_descriptor in a following patch. Signed-off-by: Benny Halevy <bhalevy@scylladb.com>
27 lines
504 B
C++
27 lines
504 B
C++
/*
|
|
* Copyright (C) 2023-present ScyllaDB
|
|
*
|
|
*/
|
|
|
|
/*
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "dht/i_partitioner.hh"
|
|
|
|
namespace compaction {
|
|
|
|
class table_state;
|
|
class strategy_control;
|
|
struct compaction_state;
|
|
|
|
using owned_ranges_ptr = lw_shared_ptr<const dht::token_range_vector>;
|
|
|
|
inline owned_ranges_ptr make_owned_ranges_ptr(dht::token_range_vector&& ranges) {
|
|
return make_lw_shared<const dht::token_range_vector>(std::move(ranges));
|
|
}
|
|
|
|
} // namespace compaction
|