Skip to content

Commit

Permalink
Merge pull request #764 from danielMd2805/master
Browse files Browse the repository at this point in the history
Copying 0-byte file, checking objectHealth in metadata.go
  • Loading branch information
ChrisSchinnerl committed Nov 27, 2023
2 parents 2efacaf + 3fd9eb8 commit 9302a83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stores/metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -2107,7 +2107,7 @@ func (s *SQLStore) object(ctx context.Context, txn *gorm.DB, bucket string, path

func (s *SQLStore) objectHealth(ctx context.Context, tx *gorm.DB, objectID uint) (health float64, err error) {
if err = tx.
Select("MIN(sla.health)").
Select("COALESCE(MIN(sla.health), 1)").
Model(&dbObject{}).
Table("objects o").
Joins("LEFT JOIN slices sli ON o.id = sli.`db_object_id`").
Expand Down

0 comments on commit 9302a83

Please sign in to comment.