Skip to content

Commit

Permalink
Merge pull request #5550 from cpuguy83/metadata_view
Browse files Browse the repository at this point in the history
Use view transaction for metadata read
  • Loading branch information
tonistiigi authored Nov 25, 2024
2 parents 51fbdf3 + de14049 commit 3b38a1e
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 3b38a1e

Please sign in to comment.