mirror of
https://github.com/coredns/coredns.git
synced 2025-09-25 15:41:26 +02:00
optimize the performance for high qps (#6767)
Signed-off-by: gaoxuesong <gaoxuesong@jd.com>
This commit is contained in:
parent
4a7587d2d7
commit
a6338e924e
@ -71,8 +71,8 @@ func (e *Etcd) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg) (
|
||||
m.SetReply(r)
|
||||
m.Truncated = truncated
|
||||
m.Authoritative = true
|
||||
m.Answer = append(m.Answer, records...)
|
||||
m.Extra = append(m.Extra, extra...)
|
||||
m.Answer = records
|
||||
m.Extra = extra
|
||||
|
||||
w.WriteMsg(m)
|
||||
return dns.RcodeSuccess, nil
|
||||
|
Loading…
x
Reference in New Issue
Block a user