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

Commit e4f5d941 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

Change-Id: I9a0dec515961a1dbf8ba1159f88191304023dc11
parents 87c67cbf 24cbb256
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