mirror of
https://github.com/coredns/coredns.git
synced 2025-12-08 19:35:10 -05:00
Only transfer a zone once (#117)
Use sync.Once to only transfer a zone once. Fixes #115
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
package file
|
||||
|
||||
import (
|
||||
"sync"
|
||||
|
||||
"github.com/miekg/coredns/middleware"
|
||||
"github.com/miekg/coredns/middleware/file/tree"
|
||||
|
||||
@@ -14,6 +16,7 @@ type Zone struct {
|
||||
*tree.Tree
|
||||
|
||||
TransferTo []string
|
||||
StartupOnce sync.Once
|
||||
TransferFrom []string
|
||||
Expired *bool
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user