Merge pull request #5745 from filecoin-project/feat/splitstore-gc-tuning
tune badger gc to repeatedly gc the value log until there is no rewrite
This commit is contained in:
commit
51ed4c7b48
@ -137,7 +137,11 @@ func (b *Blockstore) CollectGarbage() error {
|
||||
return ErrBlockstoreClosed
|
||||
}
|
||||
|
||||
err := b.DB.RunValueLogGC(0.125)
|
||||
var err error
|
||||
for err == nil {
|
||||
err = b.DB.RunValueLogGC(0.125)
|
||||
}
|
||||
|
||||
if err == badger.ErrNoRewrite {
|
||||
// not really an error in this case
|
||||
return nil
|
||||
|
Loading…
Reference in New Issue
Block a user