mirror of
https://github.com/minio/minio.git
synced 2026-11-12 22:42:20 +00:00
Make ReqInfo concurrency safe (#15204)
Some read/writes of ReqInfo did not get appropriate locks, leading to races. Make sure reading and writing holds appropriate locks.
This commit is contained in:
1 parent
8856a2d77b
commit
9004d69c6f
5 files changed
+11
-6
No files matched your search
@@ -290,6 +290,8 @@ func errToEntry(ctx context.Context, err error, errKind ...interface{}) log.Entr
|
||||
if req == nil {
|
||||
req = &ReqInfo{API: "SYSTEM"}
|
||||
}
|
||||
req.RLock()
|
||||
defer req.RUnlock()
|
||||
|
||||
API := "SYSTEM"
|
||||
if req.API != "" {
|
||||
|
||||
Reference in new issue
Block a user