]> granicus.if.org Git - pdns/commitdiff
Shrink UeberBackend from 160 to 144 bytes
authorPieter Lexis <pieter.lexis@powerdns.com>
Tue, 26 May 2015 08:26:29 +0000 (10:26 +0200)
committerPieter Lexis <pieter.lexis@powerdns.com>
Fri, 19 Jun 2015 18:14:20 +0000 (20:14 +0200)
pdns/ueberbackend.hh

index f020e74b35f34c7c7ee2365b708eac6673599fa4..9002125afe9086294f7876a8dda3007707038fd5 100644 (file)
@@ -138,33 +138,35 @@ public:
   void rediscover(string* status=0);
   void reload();
 private:
-  unsigned int d_cache_ttl, d_negcache_ttl;
-
   pthread_t tid;
   handle d_handle;
-  bool d_negcached;
-  bool d_cached;
+  vector<DNSResourceRecord> d_answers;
+  vector<DNSResourceRecord>::const_iterator d_cachehandleiter;
+
+  static pthread_mutex_t d_mut;
+  static pthread_cond_t d_cond;
+  static sem_t d_dynserialize;
+
   struct Question
   {
-    QType qtype;
     string qname;
     int zoneId;
+    QType qtype;
   }d_question;
-  vector<DNSResourceRecord> d_answers;
-  vector<DNSResourceRecord>::const_iterator d_cachehandleiter;
+
+  unsigned int d_cache_ttl, d_negcache_ttl;
+  int domain_id;
+  int d_ancount;
+
+  bool d_negcached;
+  bool d_cached;
+  static bool d_go;
+  bool stale;
 
   int cacheHas(const Question &q, vector<DNSResourceRecord> &rrs);
   void addNegCache(const Question &q);
   void addCache(const Question &q, const vector<DNSResourceRecord> &rrs);
   
-  static pthread_mutex_t d_mut;
-  static pthread_cond_t d_cond;
-  static sem_t d_dynserialize;
-  static bool d_go;
-  int d_ancount;
-  
-  bool stale;
-  int domain_id;
 };
 
 #endif