Skip to content

Commit

Permalink
[content-service] Fallback to prodcopy in prod
Browse files Browse the repository at this point in the history
  • Loading branch information
csweichel committed Jul 1, 2021
1 parent 837c44e commit f4369a7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions components/content-service/pkg/storage/gcloud.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,10 @@ func (rs *DirectGCPStorage) download(ctx context.Context, destination string, bk
defer tracing.FinishSpan(span, &err)

rc, _, err := rs.ObjectAccess(ctx, bkt, obj)
if rc == nil {
// Hack: we messed up the prod deployment at some point and need to fall back to prodcopy
rc, _, err = rs.ObjectAccess(ctx, gcpBucketName(StageStaging, rs.Username), obj)
}
if rc == nil {
return false, nil
}
Expand Down

0 comments on commit f4369a7

Please sign in to comment.