Badger: Do not compact L0 on close by default

If this goes wrong probably database goes to hell. We want to stop
the daemon as quickly as possible.
This commit is contained in:
Hector Sanjuan 2019-08-28 12:09:31 +02:00
parent a399d893b7
commit b247783dd8

View File

@ -28,6 +28,7 @@ var (
func init() {
DefaultBadgerOptions = badger.DefaultOptions("")
DefaultBadgerOptions.CompactL0OnClose = false
}
// Config is used to initialize a BadgerDB datastore. It implements the