mirror of
https://github.com/coredns/coredns.git
synced 2025-10-29 01:04:15 -04:00
Send notifies after reload
This commit is contained in:
@@ -137,6 +137,7 @@ func (z *Zone) Reload(shutdown chan bool) error {
|
|||||||
z.Tree = zone.Tree
|
z.Tree = zone.Tree
|
||||||
z.reloadMu.Unlock()
|
z.reloadMu.Unlock()
|
||||||
log.Printf("[INFO] Successfully reloaded zone `%s'", z.origin)
|
log.Printf("[INFO] Successfully reloaded zone `%s'", z.origin)
|
||||||
|
z.Notify()
|
||||||
}
|
}
|
||||||
case <-shutdown:
|
case <-shutdown:
|
||||||
watcher.Close()
|
watcher.Close()
|
||||||
|
|||||||
Reference in New Issue
Block a user