fix setting 'recordDeleteAfter' to zero (#2670) (#2671)

This commit is contained in:
Alessandro Ros
2023-11-10 13:51:52 +01:00
committed by GitHub
parent fb585b5b72
commit ef19552632
+1 -1
View File
@@ -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,