From bcb57835e437ca19e31dd939bf323c0d1cc89eb8 Mon Sep 17 00:00:00 2001 From: pebers Date: Thu, 11 Feb 2016 11:59:29 +0000 Subject: [PATCH] != whoops --- src/cache/tools/cache_cleaner.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cache/tools/cache_cleaner.go b/src/cache/tools/cache_cleaner.go index fe453d30ba..1359ae1eeb 100644 --- a/src/cache/tools/cache_cleaner.go +++ b/src/cache/tools/cache_cleaner.go @@ -93,7 +93,7 @@ func start(directory string, highWaterMark, lowWaterMark int64) { log.Notice("Cleaning %s, accessed %s, saves %s", entry.Path, humanize.Time(time.Unix(entry.Atime, 0)), humanize.Bytes(uint64(entry.Size))) // Try to rename the directory first so we don't delete bits while someone might access them. newPath := entry.Path + "=" - if err := os.Rename(entry.Path, newPath); err == nil { + if err := os.Rename(entry.Path, newPath); err != nil { log.Errorf("Couldn't rename %s: %s", entry.Path, err) continue }