diff --git a/compaction/compaction_manager.cc b/compaction/compaction_manager.cc index 25be1dedfa..efd1a7fd4f 100644 --- a/compaction/compaction_manager.cc +++ b/compaction/compaction_manager.cc @@ -2175,7 +2175,8 @@ future compaction_manager::perform_sst } compaction::compaction_state::compaction_state(table_state& t) - : backlog_tracker(t.get_compaction_strategy().make_backlog_tracker()) + : gate(format("compaction_state for table {}.{}", t.schema()->ks_name(), t.schema()->cf_name())) + , backlog_tracker(t.get_compaction_strategy().make_backlog_tracker()) { } diff --git a/compaction/compaction_state.hh b/compaction/compaction_state.hh index c2a49371fa..9ae70be66b 100644 --- a/compaction/compaction_state.hh +++ b/compaction/compaction_state.hh @@ -22,7 +22,7 @@ namespace compaction { struct compaction_state { // Used both by compaction tasks that refer to the compaction_state // and by any function running under run_with_compaction_disabled(). - seastar::gate gate; + seastar::named_gate gate; // Prevents table from running major and minor compaction at the same time. seastar::rwlock lock;