Files
mostlymatter/app
Agniva De Sarker d9e8402dc2 MM-30319: Fix race in ensureAsymmetricSigningKey (#16354)
A cluster changed listener always runs in a separate goroutine.
This causes a race condition when a new member gets added in the cluster.

We fix it by accessing the value atomically.

I tried to write a test for this, but it wasn't triggering at all.
The best way is to just start the server with cluster enabled in race mode,
and verify that the race doesn't happen.

https://mattermost.atlassian.net/browse/MM-30319

```release-notes
NONE
```
2020-11-23 19:18:24 +05:30
..
2020-09-23 08:51:12 +02:00
2020-10-26 15:11:27 +05:30
2020-10-26 15:11:27 +05:30
2020-10-26 15:11:27 +05:30
2020-10-26 15:11:27 +05:30
2020-10-26 15:11:27 +05:30
2020-11-17 09:02:36 +05:30
2020-08-20 19:37:19 +05:30
2020-10-26 15:11:27 +05:30
2020-10-26 15:11:27 +05:30
2020-10-26 15:11:27 +05:30
2020-07-28 10:27:24 +05:30
2020-10-26 15:11:27 +05:30
2020-08-13 11:12:08 +05:30
2020-11-17 09:02:36 +05:30
2020-10-26 15:11:27 +05:30