From 2b29af4547889864bb3b7ef2315046da34f8c831 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Geisendo=CC=88rfer?= Date: Wed, 8 May 2013 13:57:33 +0200 Subject: [PATCH] Delete .info files --- src/http/data_store.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/http/data_store.go b/src/http/data_store.go index ae67263..73b0d14 100644 --- a/src/http/data_store.go +++ b/src/http/data_store.go @@ -202,15 +202,15 @@ func (s *DataStore) gc() (before int64, after int64, err error) { deleted[fullPath] = true } - // Make sure we did not delete a .log file but forgot the .bin or vice-versa. + // Make sure we did not delete a .info file but forgot the .bin or vice-versa. for fullPath, _ := range deleted { ext := path.Ext(fullPath) base := fullPath[0 : len(fullPath)-len(ext)] counterPath := "" if ext == ".bin" { - counterPath = base + ".log" - } else if ext == ".log" { + counterPath = base + ".info" + } else if ext == ".info" { counterPath = base + ".bin" }