mirror of
https://github.com/minio/minio.git
synced 2024-12-28 08:05:55 -05:00
74253e1ddc
`GetParityForSC` has a value receiver, so Config is copied before the lock is obtained. Make it pointer receiver. Fixes: ``` WARNING: DATA RACE Read at 0x0000079cdd10 by goroutine 190: github.com/minio/minio/cmd.(*erasureServerPools).BackendInfo() github.com/minio/minio/cmd/erasure-server-pool.go:579 +0x6f github.com/minio/minio/cmd.(*erasureServerPools).LocalStorageInfo() github.com/minio/minio/cmd/erasure-server-pool.go:614 +0x3c6 github.com/minio/minio/cmd.(*peerRESTServer).LocalStorageInfoHandler() github.com/minio/minio/cmd/peer-rest-server.go:347 +0x4ea github.com/minio/minio/cmd.(*peerRESTServer).LocalStorageInfoHandler-fm() ... WARNING: DATA RACE Read at 0x0000079cdd10 by goroutine 190: github.com/minio/minio/cmd.(*erasureServerPools).BackendInfo() github.com/minio/minio/cmd/erasure-server-pool.go:579 +0x6f github.com/minio/minio/cmd.(*erasureServerPools).LocalStorageInfo() github.com/minio/minio/cmd/erasure-server-pool.go:614 +0x3c6 github.com/minio/minio/cmd.(*peerRESTServer).LocalStorageInfoHandler() github.com/minio/minio/cmd/peer-rest-server.go:347 +0x4ea github.com/minio/minio/cmd.(*peerRESTServer).LocalStorageInfoHandler-fm() ``` |
||
---|---|---|
.. | ||
api | ||
callhome | ||
compress | ||
dns | ||
etcd | ||
heal | ||
identity | ||
lambda | ||
notify | ||
policy | ||
scanner | ||
storageclass | ||
subnet | ||
bool-flag_test.go | ||
bool-flag.go | ||
certs_test.go | ||
certs.go | ||
certsinfo.go | ||
config_test.go | ||
config.go | ||
constants.go | ||
crypto_test.go | ||
crypto.go | ||
errors-utils.go | ||
errors.go | ||
help.go | ||
legacy.go |