From 6da8ba2d3f6ac044851710454d6800a5f6aba4a2 Mon Sep 17 00:00:00 2001 From: "Raphael S. Carvalho" Date: Mon, 29 Jun 2020 14:13:54 -0300 Subject: [PATCH] sstables: export needs_cleanup() May be needed elsewhere, like in an unit test. Signed-off-by: Raphael S. Carvalho Message-Id: <20200629171355.45118-1-raphaelsc@scylladb.com> (cherry picked from commit a9eebdc778a185c1304627e7bfbbdd366bb8324c) --- sstables/compaction_manager.cc | 2 +- sstables/compaction_manager.hh | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/sstables/compaction_manager.cc b/sstables/compaction_manager.cc index 278e0d4cda..ac87e145d4 100644 --- a/sstables/compaction_manager.cc +++ b/sstables/compaction_manager.cc @@ -708,7 +708,7 @@ future<> compaction_manager::rewrite_sstables(column_family* cf, sstables::compa return task->compaction_done.get_future().then([task] {}); } -static bool needs_cleanup(const sstables::shared_sstable& sst, +bool needs_cleanup(const sstables::shared_sstable& sst, const dht::token_range_vector& owned_ranges, schema_ptr s) { auto first = sst->get_first_partition_key(); diff --git a/sstables/compaction_manager.hh b/sstables/compaction_manager.hh index bbd3b0e728..c413c41410 100644 --- a/sstables/compaction_manager.hh +++ b/sstables/compaction_manager.hh @@ -271,3 +271,5 @@ public: friend class compaction_weight_registration; }; +bool needs_cleanup(const sstables::shared_sstable& sst, const dht::token_range_vector& owned_ranges, schema_ptr s); +