Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ruler: catering for another data race in tenant config (#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 Signed-off-by: Danny Kopping <[email protected]>
- Loading branch information