mirror of
https://github.com/minio/minio.git
synced 2025-11-07 12:52:58 -05:00
handle racy updates to globalSite config (#19750)
``` ================== WARNING: DATA RACE Read at 0x0000082be990 by goroutine 205: github.com/minio/minio/cmd.setCommonHeaders() Previous write at 0x0000082be990 by main goroutine: github.com/minio/minio/cmd.lookupConfigs() ```
This commit is contained in:
@@ -155,12 +155,12 @@ func checkAssumeRoleAuth(ctx context.Context, r *http.Request) (auth.Credentials
|
||||
return auth.Credentials{}, ErrAccessDenied
|
||||
}
|
||||
|
||||
s3Err := isReqAuthenticated(ctx, r, globalSite.Region, serviceSTS)
|
||||
s3Err := isReqAuthenticated(ctx, r, globalSite.Region(), serviceSTS)
|
||||
if s3Err != ErrNone {
|
||||
return auth.Credentials{}, s3Err
|
||||
}
|
||||
|
||||
user, _, s3Err := getReqAccessKeyV4(r, globalSite.Region, serviceSTS)
|
||||
user, _, s3Err := getReqAccessKeyV4(r, globalSite.Region(), serviceSTS)
|
||||
if s3Err != ErrNone {
|
||||
return auth.Credentials{}, s3Err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user