cmd/syncthing: Remove old temp index dbs on startup (fixes #3529)

GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3532
This commit is contained in:
Jakob Borg 2016-08-22 12:19:19 +00:00 committed by Audrius Butkevicius
parent 04dad8485a
commit 00a654845f

View File

@ -1133,6 +1133,7 @@ func cleanConfigDirectory() {
"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
"backup-of-v0.8": 30 * 24 * time.Hour, // these neither
"tmp-index-sorter.*": time.Minute, // these should never exist on startup
}
for pat, dur := range patterns {