mirror of
https://github.com/abh/geodns.git
synced 2026-04-27 03:45:53 +03:00
[PR #76] [MERGED] Fix race referencing config #406
Labels
No labels
bug
bug
enhancement
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/geodns#406
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/abh/geodns/pull/76
Author: @abligh
Created: 8/31/2015
Status: ✅ Merged
Merged: 9/3/2015
Merged by: @abh
Base:
master← Head:fix-config-race📝 Commits (1)
75f2193Fix race referencing config📊 Changes
4 files changed (+35 additions, -12 deletions)
View changed files
📝
config.go(+23 -1)📝
geodns.go(+2 -2)📝
geoip.go(+3 -2)📝
stathat.go(+7 -7)📄 Description
Three data races existed referencing the Config item - these
can be detected by running after building with 'go build -race'
on go 1.4.2. This fixes them by adding an RWMutex to protect
the config structure.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.