Skip to content

Commit

Permalink
chore(GC): Increase discard ratio from 0.7 to 0.9 (#7114)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ibrahim Jarif authored Dec 10, 2020
1 parent 2e5499f commit 2894f6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/x.go
Original file line number Diff line number Diff line change
Expand Up @@ -1030,7 +1030,7 @@ func RunVlogGC(store *badger.DB, closer *z.Closer) {
runGC := func() {
for err := error(nil); err == nil; {
// If a GC is successful, immediately run it again.
err = store.RunValueLogGC(0.7)
err = store.RunValueLogGC(0.9)
}
_, sz := store.Size()
if abs(lastSz, sz) > 512<<20 {
Expand Down

0 comments on commit 2894f6b

Please sign in to comment.