+1020. [bug] IXFR log messages did not distinguish between
+ true IXFRs, AXFR-style IXFRs, and and mere
+ version polls. [RT #1811]
+
1019. [bug] The value of the lame-ttl option was limited to 18000
seconds, not 1800 seconds as documented. [RT #1803]
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: xfrout.c,v 1.101.2.1 2001/08/31 00:37:12 gson Exp $ */
+/* $Id: xfrout.c,v 1.101.2.2 2001/09/28 22:07:12 bwelling Exp $ */
#include <config.h>
char *journalfile;
char msg[DNS_RDATACLASS_FORMATSIZE + DNS_NAME_FORMATSIZE
+ sizeof("zone transfer '/'")];
+ isc_boolean_t is_poll = ISC_FALSE;
switch (reqtype) {
case dns_rdatatype_axfr:
(client->attributes & NS_CLIENTATTR_TCP) == 0)
{
CHECK(soa_rrstream_create(mctx, db, ver, &stream));
+ is_poll = ISC_TRUE;
goto have_stream;
}
journalfile = dns_zone_getjournal(zone);
axfr_fallback:
CHECK(axfr_rrstream_create(mctx, db, ver,
&data_stream));
+ mnemonic = "AXFR-style IXFR";
}
/*
CHECK(xfr->stream->methods->first(xfr->stream));
- xfrout_log1(client, question_name, question_class, ISC_LOG_INFO,
- "%s started", mnemonic);
+ if (is_poll)
+ xfrout_log1(client, question_name, question_class,
+ ISC_LOG_DEBUG(1), "IXFR poll up to date");
+ else
+ xfrout_log1(client, question_name, question_class,
+ ISC_LOG_INFO, "%s started", mnemonic);
/*
* Hand the context over to sendstream(). Set xfr to NULL;