Sten Spans spotted that for outgoing TCP/IP queries, the <command>query-local-address</command> setting was not honored. Fixed in c1190.
</para>
</listitem>
+ <listitem>
+ <para>
+ <command>rec_control wipe-cache</command> now also wipes domains from the negative cache, hurrying up the expiry
+ of negatively cached records. Suggested by Simon Kirby, implemented in c1204.
+ </para>
+ </listitem>
+
<listitem>
<para>
Marcus Rueckert of OpenSUSE reported that very recent gcc versions emitted a (correct) warning on an overly complicated line
template<typename T>
string doWipeCache(T begin, T end)
{
- int count=0;
- for(T i=begin; i != end; ++i)
+ int count=0, countNeg=0;
+ for(T i=begin; i != end; ++i) {
count+=RC.doWipeCache(toCanonic("", *i));
+ string canon=toCanonic("", *i);
+ countNeg+=SyncRes::s_negcache.count(tie(canon));
+ pair<SyncRes::negcache_t::iterator, SyncRes::negcache_t::iterator> range=SyncRes::s_negcache.equal_range(tie(canon));
+ SyncRes::s_negcache.erase(range.first, range.second);
+ }
- return "wiped "+lexical_cast<string>(count)+" records\n";
+ return "wiped "+lexical_cast<string>(count)+" records, "+lexical_cast<string>(countNeg)+" negative records\n";
}
template<typename T>