Changeset 2341

Show
Ignore:
Timestamp:
01/15/12 13:49:48 (17 months ago)
Author:
ahu
Message:

implement very simple statmaster (in branche)

Location:
branches/pdns-statmaster/pdns
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • branches/pdns-statmaster/pdns/Makefile.am

    r2334 r2341  
    204204lua-pdns-recursor.cc lua-pdns-recursor.hh randomhelper.cc  \ 
    205205recpacketcache.cc recpacketcache.hh dns.cc nsecrecords.cc base32.cc \ 
    206 json_ws.cc json_ws.hh 
     206json_ws.cc json_ws.hh statmaster.cc statmaster.hh 
    207207 
    208208#../modules/gmysqlbackend/smysql.cc  
  • branches/pdns-statmaster/pdns/syncres.cc

    r2324 r2341  
    3838#include "lock.hh" 
    3939#include "cachecleaner.hh" 
    40  
     40#include "statmaster.hh" 
     41 
     42StatMaster s_sm; 
    4143__thread SyncRes::StaticStorage* t_sstorage; 
    4244 
     
    958960        LOG<<prefix<<qname<<": Got "<<(unsigned int)lwr.d_result.size()<<" answers from "<<*tns<<" ("<< remoteIP->toString() <<"), rcode="<<lwr.d_rcode<<", in "<<lwr.d_usec/1000<<"ms"<<endl; 
    959961 
     962        s_sm.remNameserver(*remoteIP, qname, lwr.d_rcode, lwr.d_usec); 
     963 
    960964        /*  // for you IPv6 fanatics :-) 
    961965        if(remoteIP->sin4.sin_family==AF_INET6)