mirror of
https://github.com/minio/minio.git
synced 2025-11-08 21:24:55 -05:00
tests: Protect globalLocalDrives against races (#16800)
This commit is contained in:
@@ -156,7 +156,9 @@ func newErasureServerPools(ctx context.Context, endpointServerPools EndpointServ
|
||||
break
|
||||
}
|
||||
|
||||
globalLocalDrivesMu.Lock()
|
||||
globalLocalDrives = localDrives
|
||||
defer globalLocalDrivesMu.Unlock()
|
||||
return z, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user