From a6f0742b131c5b2df7e62d274be5265a3e4c3e97 Mon Sep 17 00:00:00 2001 From: Pieter Lexis Date: Tue, 14 Oct 2025 14:51:32 +0200 Subject: [PATCH] chore(dnsdist): Improve InternalQueryState field ordering --- pdns/dnsdistdist/dnsdist-idstate.hh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pdns/dnsdistdist/dnsdist-idstate.hh b/pdns/dnsdistdist/dnsdist-idstate.hh index 9287f4fddd..972c4c6f74 100644 --- a/pdns/dnsdistdist/dnsdist-idstate.hh +++ b/pdns/dnsdistdist/dnsdist-idstate.hh @@ -120,8 +120,6 @@ struct InternalQueryState std::string d_requestorID; }; - // Whether or not Open Telemetry tracing is enabled for this query - bool tracingEnabled = false; /** * @brief Returns the Tracer, but only if OpenTelemetry tracing is globally enabled * @@ -180,6 +178,10 @@ struct InternalQueryState PacketBuffer xskPacketHeader; // 24 #endif /* HAVE_XSK */ StopWatch queryRealTime{true}; // 24 +private: + std::shared_ptr d_OTTracer{nullptr}; + +public: std::shared_ptr packetCache{nullptr}; // 16 std::unique_ptr dnsCryptQuery{nullptr}; // 8 std::unique_ptr qTag{nullptr}; // 8 @@ -221,9 +223,7 @@ struct InternalQueryState bool selfGenerated{false}; bool cacheHit{false}; bool staleCacheHit{false}; - -private: - std::shared_ptr d_OTTracer{nullptr}; + bool tracingEnabled{false}; // Whether or not Open Telemetry tracing is enabled for this query }; struct IDState -- 2.47.3