From d3d4612575fc48ab44c0de34571e503039c47251 Mon Sep 17 00:00:00 2001 From: Jakub Sztandera Date: Wed, 8 Jul 2020 20:24:34 +0200 Subject: [PATCH] Re-eanble compact on close Signed-off-by: Jakub Sztandera --- node/repo/fsrepo_ds.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/node/repo/fsrepo_ds.go b/node/repo/fsrepo_ds.go index 3c536a45d..f58e23d29 100644 --- a/node/repo/fsrepo_ds.go +++ b/node/repo/fsrepo_ds.go @@ -27,8 +27,8 @@ var fsDatastores = map[string]func(path string) (datastore.Batching, error){ func badgerDs(path string) (datastore.Batching, error) { opts := badger.DefaultOptions - opts.Options = dgbadger.DefaultOptions("").WithCompactL0OnClose(false). - WithTruncate(true).WithValueThreshold(1 << 10) + opts.Options = dgbadger.DefaultOptions("").WithTruncate(true). + WithValueThreshold(1 << 10) return badger.NewDatastore(path, &opts) }