mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-18 09:53:48 +00:00
swarm/storage: comment out collectGarbage
This commit is contained in:
parent
f42a58d39f
commit
57fa8a867f
1 changed files with 7 additions and 7 deletions
|
|
@ -619,10 +619,10 @@ func (s *LDBStore) writeBatches() {
|
||||||
log.Error(fmt.Sprintf("DbStore: spawn batch write (%d chunks): %v", b.Len(), err))
|
log.Error(fmt.Sprintf("DbStore: spawn batch write (%d chunks): %v", b.Len(), err))
|
||||||
}
|
}
|
||||||
close(c)
|
close(c)
|
||||||
if e >= s.capacity {
|
//if e >= s.capacity {
|
||||||
log.Trace(fmt.Sprintf("DbStore: collecting garbage...(%d chunks)", e))
|
//log.Trace(fmt.Sprintf("DbStore: collecting garbage...(%d chunks)", e))
|
||||||
s.collectGarbage(gcArrayFreeRatio)
|
//s.collectGarbage(gcArrayFreeRatio)
|
||||||
}
|
//}
|
||||||
}
|
}
|
||||||
log.Trace(fmt.Sprintf("DbStore: quit batch write loop"))
|
log.Trace(fmt.Sprintf("DbStore: quit batch write loop"))
|
||||||
}
|
}
|
||||||
|
|
@ -762,9 +762,9 @@ func (s *LDBStore) setCapacity(c uint64) {
|
||||||
if ratio > 1 {
|
if ratio > 1 {
|
||||||
ratio = 1
|
ratio = 1
|
||||||
}
|
}
|
||||||
for s.entryCnt > c {
|
//for s.entryCnt > c {
|
||||||
s.collectGarbage(ratio)
|
//s.collectGarbage(ratio)
|
||||||
}
|
//}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue