mirror of
https://github.com/minio/minio.git
synced 2025-11-20 18:06:10 -05:00
Enable build verification with race (#8583)
This commit is contained in:
committed by
kannappanr
parent
947bc8c7d3
commit
2ab8d5e47f
@@ -361,11 +361,15 @@ func serverMain(ctx *cli.Context) {
|
||||
getCert = globalTLSCerts.GetCertificate
|
||||
}
|
||||
|
||||
globalHTTPServer = xhttp.NewServer([]string{globalMinioAddr}, criticalErrorHandler{handler}, getCert)
|
||||
httpServer := xhttp.NewServer([]string{globalMinioAddr}, criticalErrorHandler{handler}, getCert)
|
||||
go func() {
|
||||
globalHTTPServerErrorCh <- globalHTTPServer.Start()
|
||||
globalHTTPServerErrorCh <- httpServer.Start()
|
||||
}()
|
||||
|
||||
globalObjLayerMutex.Lock()
|
||||
globalHTTPServer = httpServer
|
||||
globalObjLayerMutex.Unlock()
|
||||
|
||||
if globalIsDistXL && globalEndpoints.FirstLocal() {
|
||||
// Additionally in distributed setup validate
|
||||
if err := verifyServerSystemConfig(globalEndpoints); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user