Pārlūkot izejas kodu

cmd/syncthing: Delete old format indexes after a while (fixes #3468)

GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3469
Jakob Borg 9 gadi atpakaļ
vecāks
revīzija
a25b63e2df
1 mainītis faili ar 2 papildinājumiem un 0 dzēšanām
  1. 2 0
      cmd/syncthing/main.go

+ 2 - 0
cmd/syncthing/main.go

@@ -1121,6 +1121,8 @@ func cleanConfigDirectory() {
 		"panic-*.log":      7 * 24 * time.Hour,  // keep panic logs for a week
 		"audit-*.log":      7 * 24 * time.Hour,  // keep audit logs for a week
 		"index":            14 * 24 * time.Hour, // keep old index format for two weeks
+		"index-v0.11.0.db": 14 * 24 * time.Hour, // keep old index format for two weeks
+		"index-v0.13.0.db": 14 * 24 * time.Hour, // keep old index format for two weeks
 		"index*.converted": 14 * 24 * time.Hour, // keep old converted indexes for two weeks
 		"config.xml.v*":    30 * 24 * time.Hour, // old config versions for a month
 		"*.idx.gz":         30 * 24 * time.Hour, // these should for sure no longer exist