avoid crash when initializing bucket quota cache (#20258)

This commit is contained in:
Harshavardhana
2024-08-14 17:34:56 -07:00
committed by GitHub
parent 743ddb196a
commit db78431b1d
4 changed files with 16 additions and 36 deletions

View File

@@ -171,7 +171,7 @@ func veeamSOSAPIGetObject(ctx context.Context, bucket, object string, rs *HTTPRa
}
q, _ := globalBucketQuotaSys.Get(ctx, bucket)
binfo, _ := globalBucketQuotaSys.GetBucketUsageInfo(ctx, bucket)
binfo := globalBucketQuotaSys.GetBucketUsageInfo(ctx, bucket)
ci := capacityInfo{
Used: int64(binfo.Size),