mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-29 04:37:00 +00:00
Commitlog timer issues un-waited syncs on all segments. If such a sync takes too long we can end up keeping a segment alive across a shutdown, causing the file to be left on disk, even if actually clean. This adds a future in segment_manager that is "chained" with all active syncs (hopefully just one), and ensures we wait for this to complete in shutdown, before pruning and deleting segments