diff options
author | 2017-06-08 18:43:11 +0100 | |
---|---|---|
committer | 2017-06-08 18:43:11 +0100 | |
commit | 990460ee7caffe752167b5307d7a5bffab37da61 (patch) | |
tree | 59dcbc4047b63eb95a1aaaa1ae2c4051bd6fee15 /middleware/file/file_test.go | |
parent | 1c45e262f5cf20aaa950f8e8d86248cbce6ae120 (diff) | |
download | coredns-990460ee7caffe752167b5307d7a5bffab37da61.tar.gz coredns-990460ee7caffe752167b5307d7a5bffab37da61.tar.zst coredns-990460ee7caffe752167b5307d7a5bffab37da61.zip |
middleware/file: don't reload zone when SOA isn't changed (#707)
* middleware/file: don't reload zone when SOA isn't changed
Give Parse an extra argument which is the SOA's serial, if > 0 we check
against the just parsed SOA and then just return.
Most notable use is in reload.go which is both used in the file and auto
middleware.
Fixes #415
* PR comments
Diffstat (limited to 'middleware/file/file_test.go')
-rw-r--r-- | middleware/file/file_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/middleware/file/file_test.go b/middleware/file/file_test.go index 768817900..d5762683d 100644 --- a/middleware/file/file_test.go +++ b/middleware/file/file_test.go @@ -7,6 +7,6 @@ import ( func BenchmarkParseInsert(b *testing.B) { for i := 0; i < b.N; i++ { - Parse(strings.NewReader(dbMiekENTNL), testzone, "stdin") + Parse(strings.NewReader(dbMiekENTNL), testzone, "stdin", 0) } } |