]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
chore(dnsdist): Improve InternalQueryState field ordering 16182/head
authorPieter Lexis <pieter.lexis@powerdns.com>
Tue, 14 Oct 2025 12:51:32 +0000 (14:51 +0200)
committerPieter Lexis <pieter.lexis@powerdns.com>
Tue, 14 Oct 2025 19:00:01 +0000 (21:00 +0200)
pdns/dnsdistdist/dnsdist-idstate.hh

index 9287f4fddd96ac158fc860d4132d2abb64bfae9d..972c4c6f742c6c57f6721e682b5e544d11a7ef30 100644 (file)
@@ -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<pdns::trace::dnsdist::Tracer> d_OTTracer{nullptr};
+
+public:
   std::shared_ptr<DNSDistPacketCache> packetCache{nullptr}; // 16
   std::unique_ptr<DNSCryptQuery> dnsCryptQuery{nullptr}; // 8
   std::unique_ptr<QTag> qTag{nullptr}; // 8
@@ -221,9 +223,7 @@ struct InternalQueryState
   bool selfGenerated{false};
   bool cacheHit{false};
   bool staleCacheHit{false};
-
-private:
-  std::shared_ptr<pdns::trace::dnsdist::Tracer> d_OTTracer{nullptr};
+  bool tracingEnabled{false}; // Whether or not Open Telemetry tracing is enabled for this query
 };
 
 struct IDState