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 for concurrent map iteration and map write #197

Merged

Conversation

shriramsharma
Copy link
Collaborator

@shriramsharma shriramsharma commented Mar 10, 2022

fixes #196

Added .Range() and .Copy() func to avoid concurrent map read and
write.

Copy link
Contributor

@aattuluri aattuluri left a comment

Choose a reason for hiding this comment

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

lgtm, please fix the lint errors.

Added `.Range()` and `.Copy() func to avoid concurrent map read and
write.

Signed-off-by: Shriram Sharma <shriram_sharma@intuit.com>
Signed-off-by: Shriram Sharma <shriram_sharma@intuit.com>
@aattuluri aattuluri merged commit 4c9ef81 into istio-ecosystem:master Mar 14, 2022
psikka1 pushed a commit to psikka1/admiral that referenced this pull request Jun 15, 2022
* fixes istio-ecosystem#196

Added `.Range()` and `.Copy() func to avoid concurrent map read and
write.

Signed-off-by: Shriram Sharma <shriram_sharma@intuit.com>

* fixed the linting errors

Signed-off-by: Shriram Sharma <shriram_sharma@intuit.com>

Co-authored-by: Shriram Sharma <shriram_sharma@intuit.com>
Signed-off-by: psikka1 <pankaj_sikka@intuit.com>
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.

[BUG] concurrent map iteration and map write
2 participants