Logo
Explore Help
Sign In
Mirrors/coredns
1
0
Fork 0
You've already forked coredns
mirror of https://github.com/coredns/coredns.git synced 2025-11-05 11:36:27 -05:00
Code Issues Packages Projects Releases Wiki Activity
Files
e2f70b976a5f5950f55f89eb89c774798e69e3a3
coredns/plugin/file/shutdown.go

10 lines
185 B
Go
Raw Normal View History

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
2018-02-28 18:19:37 -08:00
package file
// OnShutdown shuts down any running go-routines for this zone.
func (z *Zone) OnShutdown() error {
Configurable zone reload interval in file plugin (#2110) * Configurable zone reload interval in file plugin * passing reload config from auto plugin to file plugin. removed noReload property from Zone struct. fixed tests based on short file reload hack
2018-09-29 17:50:49 +02:00
if 0 < z.ReloadInterval {
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
2018-02-28 18:19:37 -08:00
z.reloadShutdown <- true
}
return nil
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.1 Page: 48ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API