Skip to content

Commit

Permalink
!= whoops
Browse files Browse the repository at this point in the history
  • Loading branch information
pebers committed Feb 11, 2016
1 parent a3ea404 commit bcb5783
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cache/tools/cache_cleaner.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit bcb5783

Please sign in to comment.