optimize the performance for high qps (#6767)

Signed-off-by: gaoxuesong <gaoxuesong@jd.com>
This commit is contained in:
cedar-gao 2024-07-02 20:08:56 +08:00 committed by GitHub
parent 4a7587d2d7
commit a6338e924e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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