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:
@@ -109,7 +109,7 @@ func printServerCommonMsg(apiEndpoints []string) {
|
||||
cred := globalActiveCred
|
||||
|
||||
// Get saved region.
|
||||
region := globalSite.Region
|
||||
region := globalSite.Region()
|
||||
|
||||
apiEndpointStr := strings.TrimSpace(strings.Join(apiEndpoints, " "))
|
||||
// Colorize the message and print.
|
||||
@@ -146,7 +146,7 @@ func printLambdaTargets() {
|
||||
}
|
||||
|
||||
arnMsg := color.Blue("Object Lambda ARNs: ")
|
||||
for _, arn := range globalLambdaTargetList.List(globalSite.Region) {
|
||||
for _, arn := range globalLambdaTargetList.List(globalSite.Region()) {
|
||||
arnMsg += color.Bold(fmt.Sprintf("%s ", arn))
|
||||
}
|
||||
logger.Info(arnMsg + "\n")
|
||||
|
||||
Reference in New Issue
Block a user