mirror of
https://github.com/fluencelabs/tendermint
synced 2025-04-25 14:52:17 +00:00
Fix checkTotalSizeLimit bug; remove more than 1 file at a time
This commit is contained in:
parent
a528af55d3
commit
dd12bd8f1b
2
group.go
2
group.go
@ -206,7 +206,7 @@ func (g *Group) checkTotalSizeLimit() {
|
||||
log.Println("WARNING: Group's head " + g.Head.Path + "may grow without bound")
|
||||
return
|
||||
}
|
||||
pathToRemove := filePathForIndex(g.Head.Path, gInfo.MinIndex, gInfo.MaxIndex)
|
||||
pathToRemove := filePathForIndex(g.Head.Path, index, gInfo.MaxIndex)
|
||||
fileInfo, err := os.Stat(pathToRemove)
|
||||
if err != nil {
|
||||
log.Println("WARNING: Failed to fetch info for file @" + pathToRemove)
|
||||
|
Loading…
x
Reference in New Issue
Block a user