table: Get rid of table::run_compaction helper

The table::run_compaction is a trivial wrapper for
table::compact_sstables.

We have lots of similar {start, trigger, run}_compaction functions.
Dropping the run_compaction wrapper to reduce confusion.

Closes #9161
This commit is contained in:
Asias He
2021-08-08 19:37:00 +08:00
committed by Avi Kivity
parent e115fce8f7
commit 4ae6eae00a
3 changed files with 2 additions and 7 deletions

View File

@@ -951,10 +951,6 @@ void table::do_trigger_compaction() {
}
}
future<> table::run_compaction(sstables::compaction_descriptor descriptor) {
return compact_sstables(std::move(descriptor));
}
void table::trigger_offstrategy_compaction() {
// If the user calls trigger_offstrategy_compaction() to trigger
// off-strategy explicitly, cancel the timeout based automatic trigger.