Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cache/metadata/metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func NewStore(dbPath string) (*Store, error) {
)
}
}
db, err := boltutil.Open(dbPath, 0600, nil)
db, err := boltutil.Open(dbPath, 0600, &bolt.Options{NoFreelistSync: true})
if err != nil {
return nil, errors.Wrapf(err, "failed to open database file %s", dbPath)
}
Expand Down
3 changes: 2 additions & 1 deletion solver/bboltcachestorage/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ type Store struct {

func NewStore(dbPath string) (*Store, error) {
db, err := boltutil.SafeOpen(dbPath, 0600, &bolt.Options{
NoSync: true,
NoSync: true,
NoFreelistSync: true,
})
if err != nil {
return nil, err
Expand Down
4 changes: 3 additions & 1 deletion worker/runc/runc.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,9 @@ func NewWorkerOpt(root string, snFactory SnapshotterFactory, rootless bool, proc
return opt, err
}

db, err := bolt.Open(filepath.Join(root, "containerdmeta.db"), 0644, nil)
db, err := bolt.Open(filepath.Join(root, "containerdmeta.db"), 0644, &bolt.Options{
NoFreelistSync: true,
})
if err != nil {
return opt, err
}
Expand Down
Loading