-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix race in cluster RPC serialization
Point was accessed from multiple goroutines and there was a race on the the internal cachedFields and cachedName fields. Accessing these fields is unnecessary work as it requires the point to be unmarshal into Go types and then remarshaled back into protbuf types. Instead, just send the line protocol version already available on the point via the protobuf. This avoid accesssing these cached fields and eliminates some extra work. Possible fix for #4069
- Loading branch information
Showing
3 changed files
with
15 additions
and
235 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters