Skip to content

Commit

Permalink
Merge pull request #67 from nspcc-dev/nosync
Browse files Browse the repository at this point in the history
registry: do not sync the DB
  • Loading branch information
roman-khimov authored Oct 4, 2023
2 parents 6e2e2c4 + 10b408f commit 6d17c3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/registry/obj_registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ type ObjectInfo struct {
// connection to the database, there may be only one instance of object registry
// per database file at a time.
func NewObjRegistry(ctx context.Context, dbFilePath string) *ObjRegistry {
options := bbolt.Options{Timeout: 100 * time.Millisecond}
options := bbolt.Options{Timeout: 100 * time.Millisecond, NoSync: true}
boltDB, err := bbolt.Open(dbFilePath, os.ModePerm, &options)
if err != nil {
panic(err)
Expand Down

0 comments on commit 6d17c3e

Please sign in to comment.