Browse Source

Fix checkTotalSizeLimit bug; remove more than 1 file at a time

pull/1842/head
Jae Kwon 8 years ago
parent
commit
dd12bd8f1b
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      group.go

+ 1
- 1
group.go View File

@ -206,7 +206,7 @@ func (g *Group) checkTotalSizeLimit() {
log.Println("WARNING: Group's head " + g.Head.Path + "may grow without bound") log.Println("WARNING: Group's head " + g.Head.Path + "may grow without bound")
return return
} }
pathToRemove := filePathForIndex(g.Head.Path, gInfo.MinIndex, gInfo.MaxIndex)
pathToRemove := filePathForIndex(g.Head.Path, index, gInfo.MaxIndex)
fileInfo, err := os.Stat(pathToRemove) fileInfo, err := os.Stat(pathToRemove)
if err != nil { if err != nil {
log.Println("WARNING: Failed to fetch info for file @" + pathToRemove) log.Println("WARNING: Failed to fetch info for file @" + pathToRemove)


Loading…
Cancel
Save