mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-27 11:55:15 +00:00
stop_tasks() must make sure that no ongoing task will postpone compaction when asked to stop. Therefore, let's set all tasks as stopping before any deferring point, such that no task will postpone compaction for a table which is being stopped. compaction_manager::remove() already handles this race with the same method, and given that remove() will later switch to stop_tasks(), let's do the same in stop_tasks(). Signed-off-by: Raphael S. Carvalho <raphaelsc@scylladb.com>