Skip to content

Commit f165c44

Browse files
authored
Merge pull request #1913 from afumagalli98/1911
Updated auto-tiering only if the size is greater than 500 GB
2 parents 02536b1 + a1a3a76 commit f165c44

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

thunder-service/job/aws_bucket.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,10 @@ func (job *AwsDataRetrieveJob) FetchBucketLifecycleConfiguration(bucketName stri
8080
go job.sumSize(bucketObject.Contents[objLen/2:], c)
8181
objSum := <-c + <-c
8282

83+
if objSum < 500_000_000_000 {
84+
return nil
85+
}
86+
8387
awsRecommendation := model.AwsRecommendation{
8488
SeqValue: seqValue,
8589
ProfileID: profileID,

0 commit comments

Comments
 (0)