diff options
author | 2018-11-03 20:00:07 +0000 | |
---|---|---|
committer | 2018-11-03 13:00:07 -0700 | |
commit | c2331d7dda8280053f96ce6ff1b50aace306992a (patch) | |
tree | 5c6ae500f561583c174d21b00a53ea56434271a1 /plugin/plugin.go | |
parent | 921b02e2d5af6535cab4d2c2113c92770e4d1f59 (diff) | |
download | coredns-c2331d7dda8280053f96ce6ff1b50aace306992a.tar.gz coredns-c2331d7dda8280053f96ce6ff1b50aace306992a.tar.zst coredns-c2331d7dda8280053f96ce6ff1b50aace306992a.zip |
plugin/host: parse file without holding lock (#2270)
* plugin/host: parse file without holding lock
Parse first and then swap the maps *while* holding the lock.
Signed-off-by: Miek Gieben <miek@miek.nl>
* add back in the parse function, but now purely for testing
Signed-off-by: Miek Gieben <miek@miek.nl>
Diffstat (limited to 'plugin/plugin.go')
0 files changed, 0 insertions, 0 deletions