Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3f78bcea authored by Automerger Merge Worker's avatar Automerger Merge Worker
Browse files

Merge "Fill in DNS query type in DNS metric when DNS lookup hit cache" am:...

Merge "Fill in DNS query type in DNS metric when DNS lookup hit cache" am: d1e944aa am: 24cbb256 am: e4f5d941

Change-Id: Ice60204796a9b6c9db8816e6491cca272dfdd290
parents a3b0d378 e4f5d941
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -418,6 +418,7 @@ int res_nsend(res_state statp, const uint8_t* buf, int buflen, uint8_t* ans, int
        DnsQueryEvent* dnsQueryEvent = addDnsQueryEvent(statp->event);
        dnsQueryEvent->set_latency_micros(cacheLatencyUs);
        dnsQueryEvent->set_cache_hit(static_cast<CacheStatus>(cache_status));
        dnsQueryEvent->set_type(getQueryType(buf, buflen));
        return anslen;
    } else if (cache_status != RESOLV_CACHE_UNSUPPORTED) {
        // had a cache miss for a known network, so populate the thread private