mirror of
https://github.com/scylladb/scylladb.git
synced 2026-06-04 14:03:06 +00:00
And hold its gate to make sure the compaction_state outlives the task and can be used to wait on all tasks and functions using it. With that, doing access _compaction_state[cf] to acquire shared/exclusive locks but rather get to it via task->compaction_state so it can be detached from _compaction_state while task is running, if needed. Signed-off-by: Benny Halevy <bhalevy@scylladb.com>