minio/internal
Klaus Post 74253e1ddc
Fix BackendInfo() race (#18305)
`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()
```
2023-10-24 08:15:41 -07:00
..
amztime fix: set time format right (#17402) 2023-06-14 07:49:13 -07:00
arn Allow OpenID ARN resource ID to start with a `-` (#18255) 2023-10-16 13:50:51 -07:00
auth Add "name" and "description" params to service acc (#17172) 2023-05-17 17:05:36 -07:00
bpool run gofumpt cleanup across code-base (#14015) 2022-01-02 09:15:06 -08:00
bucket Add unit test for lifecycle.FilterRules (#18284) 2023-10-19 21:33:28 -07:00
color log: Do not interpret verbs in object names in console output (#16233) 2022-12-13 08:27:40 -08:00
config Fix BackendInfo() race (#18305) 2023-10-24 08:15:41 -07:00
crypto Update to minio/pkg/v2 (#17967) 2023-09-04 12:57:37 -07:00
deadlineconn add deadlineConnections on remoteTransport (#16010) 2022-11-05 11:09:21 -07:00
disk fix: linter errors in Windows specific code (#18276) 2023-10-18 11:08:15 -07:00
dsync Update to minio/pkg/v2 (#17967) 2023-09-04 12:57:37 -07:00
etag feat: SSE-KMS use uuid instead of read all data to md5. (#17958) 2023-09-18 10:00:54 -07:00
event Add event counters (#18232) 2023-10-12 15:39:22 -07:00
fips disable builds for go1.18 (#16332) 2022-12-30 11:37:07 -08:00
handlers lint: fix some lint issues on files 2023-04-06 22:42:10 -07:00
hash feat: SSE-KMS use uuid instead of read all data to md5. (#17958) 2023-09-18 10:00:54 -07:00
http Update to minio/pkg/v2 (#17967) 2023-09-04 12:57:37 -07:00
init force all internal MinIO operations to be under UTC (#16009) 2022-11-04 16:44:38 -07:00
ioutil return an error in CopyAligned upon premature EOF (#18110) 2023-09-26 11:20:06 -07:00
jwt allow JWT parsing on large session policy based tokens (#17167) 2023-05-09 00:53:08 -07:00
kms Update to minio/pkg/v2 (#17967) 2023-09-04 12:57:37 -07:00
lock fix: linter errors in Windows specific code (#18276) 2023-10-18 11:08:15 -07:00
logger Error if target went offline (#18221) 2023-10-12 06:13:57 -07:00
lsync cleanup Go linter settings (#16736) 2023-03-04 20:57:35 -08:00
mcontext Add X-Amz-Request-Id to internode calls (#16146) 2022-12-06 09:27:26 -08:00
mountinfo Remove deprecated io/ioutil (#15707) 2022-09-19 11:05:16 -07:00
net fix: return error when requested interface has no stats available (#17666) 2023-07-17 01:14:01 -07:00
once Support persistent queue store for loggers (#17121) 2023-05-08 21:20:31 -07:00
pubsub mark pubsub type safe via generics (#15961) 2022-10-28 10:55:42 -07:00
rest Update to minio/pkg/v2 (#17967) 2023-09-04 12:57:37 -07:00
s3select Update to minio/pkg/v2 (#17967) 2023-09-04 12:57:37 -07:00
store Send kafka notification messages in batches when queue_dir is enabled (#18164) 2023-10-07 08:07:38 -07:00