From: Pieter Lexis Date: Tue, 26 May 2015 08:26:29 +0000 (+0200) Subject: Shrink UeberBackend from 160 to 144 bytes X-Git-Tag: dnsdist-1.0.0-alpha1~248^2~77^2~4^2~31 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c899e9e74da26230998d7e323aa0caf67c726c54;p=thirdparty%2Fpdns.git Shrink UeberBackend from 160 to 144 bytes --- diff --git a/pdns/ueberbackend.hh b/pdns/ueberbackend.hh index f020e74b35..9002125afe 100644 --- a/pdns/ueberbackend.hh +++ b/pdns/ueberbackend.hh @@ -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 d_answers; + vector::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 d_answers; - vector::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 &rrs); void addNegCache(const Question &q); void addCache(const Question &q, const vector &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