Re-eanble compact on close

Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
This commit is contained in:
Jakub Sztandera 2020-07-08 20:24:34 +02:00
parent 631b8b5802
commit d3d4612575
No known key found for this signature in database
GPG Key ID: 9A9AF56F8B3879BA

View File

@ -27,8 +27,8 @@ var fsDatastores = map[string]func(path string) (datastore.Batching, error){
func badgerDs(path string) (datastore.Batching, error) { func badgerDs(path string) (datastore.Batching, error) {
opts := badger.DefaultOptions opts := badger.DefaultOptions
opts.Options = dgbadger.DefaultOptions("").WithCompactL0OnClose(false). opts.Options = dgbadger.DefaultOptions("").WithTruncate(true).
WithTruncate(true).WithValueThreshold(1 << 10) WithValueThreshold(1 << 10)
return badger.NewDatastore(path, &opts) return badger.NewDatastore(path, &opts)
} }