mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-28 14:40:51 +02:00
multi: add AutoCompact option to bolt backend
With this commit we thread the new AutoCompact flags all the way through to the bolt backend.
This commit is contained in:
10
lncfg/db.go
10
lncfg/db.go
@@ -83,9 +83,13 @@ func (db *DB) GetBackends(ctx context.Context, dbPath string,
|
||||
}
|
||||
}
|
||||
|
||||
localDB, err = kvdb.GetBoltBackend(
|
||||
dbPath, dbName, !db.Bolt.SyncFreelist,
|
||||
)
|
||||
localDB, err = kvdb.GetBoltBackend(&kvdb.BoltBackendConfig{
|
||||
DBPath: dbPath,
|
||||
DBFileName: dbName,
|
||||
NoFreelistSync: !db.Bolt.SyncFreelist,
|
||||
AutoCompact: db.Bolt.AutoCompact,
|
||||
AutoCompactMinAge: db.Bolt.AutoCompactMinAge,
|
||||
})
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
Reference in New Issue
Block a user