minio/internal/logger/target
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
..
console fix: do not pass around sync.Map (#15250) 2022-07-07 17:04:25 -07:00
http Add detailed scanner metrics (#15161) 2022-07-05 14:45:49 -07:00
kafka Add detailed scanner metrics (#15161) 2022-07-05 14:45:49 -07:00
types Make audit webhook and kafka config dynamic (#14390) 2022-02-24 09:05:33 -08:00