Changeset 1383

Show
Ignore:
Timestamp:
07/30/09 22:34:51 (4 years ago)
Author:
ahu
Message:

cherry pick 1286 for 3.1.7.1, silence horrible amounts of performance killing debugging

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • tags/pdns-3.1.7.1/pdns/pdns_recursor.cc

    r1381 r1383  
    318318  for(; chain.first != chain.second; chain.first++) { 
    319319    if(chain.first->key.fd > -1) { // don't chain onto existing chained waiter! 
     320      /* 
    320321      cerr<<"Orig: "<<pident.domain<<", "<<pident.remote.toString()<<", id="<<id<<endl; 
    321322      cerr<<"Had hit: "<< chain.first->key.domain<<", "<<chain.first->key.remote.toString()<<", id="<<chain.first->key.id 
    322323          <<", count="<<chain.first->key.chain.size()<<", origfd: "<<chain.first->key.fd<<endl; 
    323        
     324      */ 
    324325      chain.first->key.chain.insert(id); // we can chain 
    325326      *fd=-1;                            // gets used in waitEvent / sendEvent later on 
     
    12461247void doResends(MT_t::waiters_t::iterator& iter, PacketID resend, const string& content) 
    12471248{ 
    1248  
    12491249  if(iter->key.chain.empty()) 
    12501250    return; 
    1251  
    1252   cerr<<"doResends called!\n"; 
     1251  //  cerr<<"doResends called!\n"; 
    12531252  for(PacketID::chain_t::iterator i=iter->key.chain.begin(); i != iter->key.chain.end() ; ++i) { 
    12541253    resend.fd=-1; 
    12551254    resend.id=*i; 
    1256     cerr<<"\tResending "<<content.size()<<" bytes for fd="<<resend.fd<<" and id="<<resend.id<<endl; 
     1255    //    cerr<<"\tResending "<<content.size()<<" bytes for fd="<<resend.fd<<" and id="<<resend.id<<endl; 
    12571256 
    12581257    MT->sendEvent(resend, &content);