From ef19552632da305f168a5fade5fabe5f6a74d438 Mon Sep 17 00:00:00 2001 From: Alessandro Ros Date: Fri, 10 Nov 2023 13:51:52 +0100 Subject: [PATCH] fix setting 'recordDeleteAfter' to zero (#2670) (#2671) --- internal/core/core.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/core/core.go b/internal/core/core.go index c9d21fee..d41886d5 100644 --- a/internal/core/core.go +++ b/internal/core/core.go @@ -38,7 +38,7 @@ func gatherCleanerEntries(paths map[string]*conf.Path) []record.CleanerEntry { out := make(map[record.CleanerEntry]struct{}) for _, pa := range paths { - if pa.Record { + if pa.Record && pa.RecordDeleteAfter != 0 { entry := record.CleanerEntry{ RecordPath: pa.RecordPath, RecordFormat: pa.RecordFormat,