Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: eliminate race condition on Monitor.globalTags #23467

Merged
merged 1 commit into from
Jun 16, 2022
Merged

Conversation

gwossum
Copy link
Member

@gwossum gwossum commented Jun 16, 2022

Closes #23466

Copy link
Contributor

@davidby-influx davidby-influx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

t.mu.RLock()
defer t.mu.RUnlock()

r := make(map[string]string)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a note of interest, 1.18 gave us a nice map copy function.

https://pkg.go.dev/golang.org/x/exp/maps#Copy

@jacobmarble jacobmarble deleted the gw_fix_2366 branch January 2, 2024 22:53
chengshiwen pushed a commit to chengshiwen/influxdb that referenced this pull request Aug 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants