Update to shutdown worker for WAL checkpointing mode

This commit is contained in:
Aditya Ujeniya
2026-03-02 15:27:06 +01:00
parent 1ec41d8389
commit a243e17499
3 changed files with 13 additions and 2 deletions

View File

@@ -294,7 +294,7 @@ func Shutdown() {
var hostDirs []string
files, hostDirs, err = ms.ToCheckpointWAL(Keys.Checkpoints.RootDir, from.Unix(), time.Now().Unix())
if err == nil {
RotateWALFiles(hostDirs)
RotateWALFilesAfterShutdown(hostDirs)
}
} else {
files, err = ms.ToCheckpoint(Keys.Checkpoints.RootDir, from.Unix(), time.Now().Unix())