mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-12 19:02:12 +00:00
compaction: compaction_state: use named gate
Signed-off-by: Benny Halevy <bhalevy@scylladb.com>
This commit is contained in:
@@ -2175,7 +2175,8 @@ future<compaction_manager::compaction_stats_opt> 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())
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user