From 93396aa0ea0f75903a315e2ccd8e92d2e4dafe7b Mon Sep 17 00:00:00 2001 From: Jan Eitzinger Date: Wed, 14 Jun 2023 07:31:43 +0200 Subject: [PATCH] Fix bug in compression service --- pkg/archive/fsBackend.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/archive/fsBackend.go b/pkg/archive/fsBackend.go index f0a0477..0a9c224 100644 --- a/pkg/archive/fsBackend.go +++ b/pkg/archive/fsBackend.go @@ -363,6 +363,7 @@ func (fsa *FsArchive) CompressLast(starttime int64) int64 { b, err := os.ReadFile(filename) if err != nil { log.Errorf("fsBackend Compress - %v", err) + os.WriteFile(filename, []byte(fmt.Sprintf("%d", starttime)), 0644) return starttime } last, err := strconv.ParseInt(strings.TrimSuffix(string(b), "\n"), 10, 64)