for (const auto& threadInfo : RecThreadInfo::infos()) {
if (threadInfo.isWorker()) {
SLOG(g_log << Logger::Notice << "stats: thread " << idx << " has been distributed " << threadInfo.getNumberOfDistributedQueries() << " queries" << endl,
- log->info(Logr::Info, "Queries handled by thread", "thread", Logging::Loggable(idx), "count", Logging::Loggable(threadInfo.getNumberOfDistributedQueries())));
+ log->info(Logr::Info, "Queries handled by thread", "thread", Logging::Loggable(idx), "tname", Logging::Loggable(threadInfo.getName()), "count", Logging::Loggable(threadInfo.getNumberOfDistributedQueries())));
++idx;
}
}
static void doProcessTCPQuestion(std::unique_ptr<DNSComboWriter>& comboWriter, shared_ptr<TCPConnection>& conn, RunningTCPQuestionGuard& tcpGuard, int fileDesc)
{
+ RecThreadInfo::self().incNumberOfDistributedQueries();
struct timeval start
{
};
// We have read a proper query
++t_Counters.at(rec::Counter::qcounter);
++t_Counters.at(rec::Counter::tcpqcounter);
+ if (comboWriter->d_source.sin4.sin_family == AF_INET6) {
+ ++t_Counters.at(rec::Counter::ipv6qcounter);
+ }
if (comboWriter->d_mdp.d_header.opcode == static_cast<unsigned>(Opcode::Notify)) {
handleNotify(comboWriter, qname);