minio/internal/logger
Harshavardhana 32b2f6117e
fix: do not pass around sync.Map (#15250)
it is not safe to pass around sync.Map
through pointers, as it may be concurrently
updated by different callers.

this PR simplifies by avoiding sync.Map
altogether, we do not need sync.Map
to keep object->erasureMap association.

This PR fixes a crash when concurrently
using this value when audit logs are
configured.

```
fatal error: concurrent map iteration and map write

goroutine 247651580 [running]:
runtime.throw({0x277a6c1?, 0xc002381400?})
        runtime/panic.go:992 +0x71 fp=0xc004d29b20 sp=0xc004d29af0 pc=0x438671
runtime.mapiternext(0xc0d6e87f18?)
        runtime/map.go:871 +0x4eb fp=0xc004d29b90 sp=0xc004d29b20 pc=0x41002b
```
2022-07-07 17:04:25 -07:00
..
message Add detailed scanner metrics (#15161) 2022-07-05 14:45:49 -07:00
target fix: do not pass around sync.Map (#15250) 2022-07-07 17:04:25 -07:00
audit.go Add detailed scanner metrics (#15161) 2022-07-05 14:45:49 -07:00
config.go Make audit webhook and kafka config dynamic (#14390) 2022-02-24 09:05:33 -08:00
console.go improve logs, fix banner formatting (#14456) 2022-03-03 13:21:16 -08:00
help.go Add "enable" to config help (#14866) 2022-05-05 04:17:04 -07:00
legacy.go feat: Add support for kakfa audit logger target (#12678) 2021-07-13 09:39:13 -07:00
logger.go Add detailed scanner metrics (#15161) 2022-07-05 14:45:49 -07:00
logonce.go logger lock should be more granular (#14901) 2022-05-12 07:20:58 -07:00
reqinfo.go Make ReqInfo concurrency safe (#15204) 2022-06-30 10:48:50 -07:00
targets.go Add detailed scanner metrics (#15161) 2022-07-05 14:45:49 -07:00
utils.go run gofumpt cleanup across code-base (#14015) 2022-01-02 09:15:06 -08:00