2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-29 13:38:26 +00:00

1020. [bug] IXFR log messages did not distinguish between

true IXFRs, AXFR-style IXFRs, and and mere
                        version polls. [RT #1811]
This commit is contained in:
Andreas Gustafsson 2001-09-28 00:45:34 +00:00
parent edaf5b86ce
commit 846474d5a6
2 changed files with 14 additions and 3 deletions

View File

@ -1,4 +1,8 @@
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]

View File

@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: xfrout.c,v 1.103 2001/08/31 00:35:18 gson Exp $ */
/* $Id: xfrout.c,v 1.104 2001/09/28 00:45:34 gson Exp $ */
#include <config.h>
@ -889,6 +889,7 @@ ns_xfr_start(ns_client_t *client, dns_rdatatype_t reqtype) {
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:
@ -1074,6 +1075,7 @@ ns_xfr_start(ns_client_t *client, dns_rdatatype_t reqtype) {
(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);
@ -1098,6 +1100,7 @@ ns_xfr_start(ns_client_t *client, dns_rdatatype_t reqtype) {
axfr_fallback:
CHECK(axfr_rrstream_create(mctx, db, ver,
&data_stream));
mnemonic = "AXFR-style IXFR";
}
/*
@ -1131,8 +1134,12 @@ ns_xfr_start(ns_client_t *client, dns_rdatatype_t reqtype) {
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;