Changeset 615

Show
Ignore:
Timestamp:
03/24/06 23:28:58 (7 years ago)
Author:
ahu
Message:

fix incredibly stupid throttle cache pruning bug

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/pdns/pdns/syncres.hh

    r608 r615  
    4444    if(now > d_last_clean + 60 ) { 
    4545      d_last_clean=now; 
    46       for(typename cont_t::iterator i=d_cont.begin();i!=d_cont.end();)  
    47         if( i->second.ttd > now) { 
     46      for(typename cont_t::iterator i=d_cont.begin();i!=d_cont.end();) { 
     47        if( i->second.ttd < now) { 
    4848          d_cont.erase(i++); 
    4949        } 
    5050        else 
    5151          ++i; 
     52      } 
    5253    } 
    5354