Skip to content
This repository has been archived by the owner on Feb 19, 2025. It is now read-only.

Fix data race with templates and sampling #83

Merged
merged 1 commit into from
Jul 14, 2020

Conversation

davmatjo
Copy link
Contributor

Fixes #82

Acquire the RLock() and release it immediately after read, then optionally acquire the full Lock() if templates or sampling need to be written to.

Running with go build -race with these changes shows no data races.

@lspgn lspgn merged commit efa7272 into cloudflare:master Jul 14, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Data race in utils/netflow.go
2 participants