Changeset 1774
- Timestamp:
- 12/30/10 22:20:06 (2 years ago)
- Files:
-
- 1 modified
-
trunk/pdns/pdns/backends/bind/bindbackend2.cc (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pdns/pdns/backends/bind/bindbackend2.cc
r1770 r1774 793 793 bool Bind2Backend::findBeforeAndAfterUnhashed(BB2DomainInfo& bbd, const std::string& qname, std::string& unhashed, std::string& before, std::string& after) 794 794 { 795 796 795 string domain=toLower(qname); 797 string lname = labelReverse(domain); 798 799 cout<<"starting lower bound for: '"<<domain<<"', search is for: '"<<lname<<"'"<<endl; 800 801 recordstorage_t::const_iterator iter = lower_bound(bbd.d_records->begin(), bbd.d_records->end(), lname); 796 797 cout<<"starting lower bound for: '"<<domain<<"'"<<endl; 798 799 recordstorage_t::const_iterator iter = lower_bound(bbd.d_records->begin(), bbd.d_records->end(), domain); 802 800 803 801 while(iter != bbd.d_records->begin() && !boost::prior(iter)->auth && boost::prior(iter)->qtype!=QType::NS) { … … 820 818 821 819 cerr<<"Now upper bound"<<endl; 822 iter = upper_bound(bbd.d_records->begin(), bbd.d_records->end(), lname);820 iter = upper_bound(bbd.d_records->begin(), bbd.d_records->end(), domain); 823 821 824 822 while(iter!=bbd.d_records->end() && (!iter->auth && iter->qtype != QType::NS)) … … 826 824 827 825 if(iter == bbd.d_records->end()) { 828 cerr<<"\tFound the end !"<<endl;829 after = dotConcat(labelReverse(bbd.d_records->begin()->qname), bbd.d_name);826 cerr<<"\tFound the end, begin storage: '"<<bbd.d_records->begin()->qname<<"', '"<<bbd.d_name<<"'"<<endl; 827 after.clear(); // this does the right thing 830 828 } else { 831 829 cerr<<"\tFound: '"<<iter->qname<<"'"<<endl; … … 979 977 // cerr<<"Found nothign!"<<endl; 980 978 d_handle.d_list=false; 979 d_handle.d_iter = d_handle.d_end_iter = range.first; 981 980 return; 982 981 }