open-consul/.changelog/11940.txt
Dhia Ayachi 7e0b8354a5
clone the service under lock to avoid a data race (#11940)
* clone the service under lock to avoid a data race

* add change log

* create a struct and copy the pointer to mutate it to avoid a data race

* fix failing test

* revert added space

* add comments, to clarify the data race.
2022-01-06 14:33:06 -05:00

4 lines
84 B
Plaintext

```release-note:bug
Mutate `NodeService` struct properly to avoid a data race.
```