From 2894f6b0f4d6ed15f4d7c837828366c683f72a83 Mon Sep 17 00:00:00 2001
From: Ibrahim Jarif <ibrahim@dgraph.io>
Date: Fri, 11 Dec 2020 02:57:26 +0530
Subject: [PATCH] chore(GC): Increase discard ratio from 0.7 to 0.9 (#7114)

---
 x/x.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/x/x.go b/x/x.go
index d65b5d9aeaf..3776deecba3 100644
--- a/x/x.go
+++ b/x/x.go
@@ -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 {