Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[release-2.8.x] Ruler: catering for another data race in tenant config (
#11715) Backport 61a4205 from #11612 --- Expands on #11601 **What this PR does / why we need it**: Turns out the previous tests didn't expose all possible causes for data races (another one occurs at https://github.com/grafana/loki/blob/5a55158cc751465846383bc758aa0c169363b292/pkg/ruler/registry.go#L204). Moving the mutex to the calling function adds more safety. **Which issue(s) this PR fixes**: Fixes #11569 Co-authored-by: Danny Kopping <danny.kopping@grafana.com>
- Loading branch information