aboutsummaryrefslogtreecommitdiff
path: root/plugin/file/reload.go
diff options
context:
space:
mode:
authorGravatar Miek Gieben <miek@miek.nl> 2018-02-28 18:19:37 -0800
committerGravatar GitHub <noreply@github.com> 2018-02-28 18:19:37 -0800
commit4f3dc207a46a29edd0f36b9242ce59a6c7e104d0 (patch)
tree698274f29cd2a7f911d9bd363d5e92ee01c0c5db /plugin/file/reload.go
parent6bb08ffee446573c8f401160fa7830ffacca8530 (diff)
downloadcoredns-4f3dc207a46a29edd0f36b9242ce59a6c7e104d0.tar.gz
coredns-4f3dc207a46a29edd0f36b9242ce59a6c7e104d0.tar.zst
coredns-4f3dc207a46a29edd0f36b9242ce59a6c7e104d0.zip
plugin/file: shutdown reload goroutine (#1571)
* plugin/file: shutdown reload goroutine Shutdown the z.Reload() routine (if started in the first place) on shutdow and reload. Fixes #1508 * Must be put in c.OnShutdown() * up test coverage
Diffstat (limited to 'plugin/file/reload.go')
-rw-r--r--plugin/file/reload.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugin/file/reload.go b/plugin/file/reload.go
index 53b57fd5e..5effae8eb 100644
--- a/plugin/file/reload.go
+++ b/plugin/file/reload.go
@@ -47,7 +47,7 @@ func (z *Zone) Reload() error {
log.Printf("[INFO] Successfully reloaded zone %q in %q with serial %d", z.origin, z.file, z.Apex.SOA.Serial)
z.Notify()
- case <-z.ReloadShutdown:
+ case <-z.reloadShutdown:
tick.Stop()
return
}