mirror of
https://github.com/status-im/consul.git
synced 2025-01-09 13:26:07 +00:00
fa4577d1a9
The race detector noticed this initially in `TestAgentConfigWatcherSidecarProxy` but it is not restricted to just tests. The two main changes here were: - ensure that before we mutate the internal `agent/local` representation of a Service (for tags or VIPs) we clone those fields - ensure that there's no function argument joint ownership between the caller of a function and the local state when calling `AddService`, `AddCheck`, and related using `copystructure` for now.
4 lines
160 B
Plaintext
4 lines
160 B
Plaintext
```release-note:bug
|
|
local: fixes a data race in anti-entropy sync that could cause the wrong tags to be applied to a service when EnableTagOverride is used
|
|
```
|