Skip to content

Commit

Permalink
Merge pull request #5551 from cpuguy83/v0.17_metadata_view
Browse files Browse the repository at this point in the history
[v0.17] Use view transaction for metadata read
  • Loading branch information
crazy-max authored Nov 26, 2024
2 parents a3d7342 + 39f7c0b commit 80e01a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cache/metadata/metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ func (s *Store) Get(id string) (*StorageItem, bool) {
}

var si *StorageItem
if err := s.db.Update(func(tx *bolt.Tx) error {
if err := s.db.View(func(tx *bolt.Tx) error {
b := tx.Bucket([]byte(mainBucket))
if b == nil {
return nil
Expand Down

0 comments on commit 80e01a9

Please sign in to comment.