diff --git a/sstables/compaction_manager.cc b/sstables/compaction_manager.cc index ae3b22931a..4c279c990e 100644 --- a/sstables/compaction_manager.cc +++ b/sstables/compaction_manager.cc @@ -132,6 +132,7 @@ void compaction_manager::task_start(lw_shared_ptr& tas try { f.get(); } catch (seastar::gate_closed_exception& e) { + task->compacting_cf = nullptr; cmlog.info("compaction task handler stopped due to shutdown"); throw; } catch (std::exception& e) {