Skip to content

Commit

Permalink
Use a mode when opening the db file that won't result in excessive pe…
Browse files Browse the repository at this point in the history
…rms. (#12160) (#12161)
  • Loading branch information
ncabatoff committed Jul 23, 2021
1 parent 43cfab4 commit 82a99f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion physical/raft/snapshot.go
Expand Up @@ -210,7 +210,7 @@ func (f *BoltSnapshotStore) getMetaFromDB(id string) (*raft.SnapshotMeta, error)
}

filename := filepath.Join(f.path, id, databaseFilename)
boltDB, err := bolt.Open(filename, 0o666, &bolt.Options{Timeout: 1 * time.Second})
boltDB, err := bolt.Open(filename, 0o600, &bolt.Options{Timeout: 1 * time.Second})
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 82a99f1

Please sign in to comment.