Closed wenyingd closed 4 years ago
Copy a new MatchField object from the object in the appropriate map, and return then it in function FindFieldHeaderByName. Otherwise, all goroutines are sharing the same MatchField object, and it could cause a race conditions.
FindFieldHeaderByName
Signed-off-by: wenyingd wenyingd@vmware.com
Hi @jojimt , could you help review this PR?
Copy a new MatchField object from the object in the appropriate map, and return then it in function
FindFieldHeaderByName
. Otherwise, all goroutines are sharing the same MatchField object, and it could cause a race conditions.Signed-off-by: wenyingd wenyingd@vmware.com