Skip to content

Commit

Permalink
fix(GC): Reduce DiscardRatio from 0.9 to 0.7 (#7412) (#7421)
Browse files Browse the repository at this point in the history
(cherry picked from commit 15bbec3)
  • Loading branch information
Ibrahim Jarif authored Feb 16, 2021
1 parent dc15007 commit bfb92a6
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 @@ -1031,7 +1031,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.9)
err = store.RunValueLogGC(0.7)
}
_, sz := store.Size()
if abs(lastSz, sz) > 512<<20 {
Expand Down

0 comments on commit bfb92a6

Please sign in to comment.