feat(database): add a flag to compact on startup BE-12283 (#1255)

This commit is contained in:
andres-portainer
2025-09-24 18:44:09 -03:00
committed by GitHub
parent c8ee2ca4a1
commit b7384874cf
9 changed files with 142 additions and 10 deletions

View File

@@ -113,7 +113,7 @@ type datastoreOption = func(d *testDatastore)
// NewDatastore creates new instance of testDatastore.
// Will apply options before returning, opts will be applied from left to right.
func NewDatastore(options ...datastoreOption) *testDatastore {
conn, _ := database.NewDatabase("boltdb", "", nil)
conn, _ := database.NewDatabase("boltdb", "", nil, false)
d := testDatastore{connection: conn}
for _, o := range options {