mirror of
https://github.com/coredns/coredns.git
synced 2025-08-08 15:27:01 +02:00
* 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
13 lines
185 B
Go
13 lines
185 B
Go
package file
|
|
|
|
import (
|
|
"strings"
|
|
"testing"
|
|
)
|
|
|
|
func BenchmarkParseInsert(b *testing.B) {
|
|
for i := 0; i < b.N; i++ {
|
|
Parse(strings.NewReader(dbMiekENTNL), testzone, "stdin", 0)
|
|
}
|
|
}
|