optimize the performance for high qps (#6767)
Signed-off-by: gaoxuesong <gaoxuesong@jd.com>
This commit is contained in:
parent
4a7587d2d7
commit
a6338e924e
1 changed files with 2 additions and 2 deletions
|
@ -71,8 +71,8 @@ func (e *Etcd) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg) (
|
||||||
m.SetReply(r)
|
m.SetReply(r)
|
||||||
m.Truncated = truncated
|
m.Truncated = truncated
|
||||||
m.Authoritative = true
|
m.Authoritative = true
|
||||||
m.Answer = append(m.Answer, records...)
|
m.Answer = records
|
||||||
m.Extra = append(m.Extra, extra...)
|
m.Extra = extra
|
||||||
|
|
||||||
w.WriteMsg(m)
|
w.WriteMsg(m)
|
||||||
return dns.RcodeSuccess, nil
|
return dns.RcodeSuccess, nil
|
||||||
|
|
Loading…
Add table
Reference in a new issue