]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
1469. [func] Log end of outgoing zone transfer at same level
authorMark Andrews <marka@isc.org>
Tue, 22 Apr 2003 04:08:54 +0000 (04:08 +0000)
committerMark Andrews <marka@isc.org>
Tue, 22 Apr 2003 04:08:54 +0000 (04:08 +0000)
                        as the start of transfer is logged. [RT #4441]

CHANGES
bin/named/xfrout.c

diff --git a/CHANGES b/CHANGES
index 0d4df2d1260d6311d9b13e0ec1b309a846019d66..21289667dea66f863be1a69880eeb6187fb5d5c6 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,6 @@
+1469.  [func]          Log end of outgoing zone transfer at same level
+                       as the start of transfer is logged. [RT #4441]
+
 1468.  [func]          Internal zones are no longer counted for
                        'rndc status'.  [RT #4706]
 
index 5654f26099b44d60a5615ab8345c139564e94715..2f0b213c0d2586ae353aba5da6426ce3d5eb6c12 100644 (file)
@@ -15,7 +15,7 @@
  * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: xfrout.c,v 1.112 2003/04/17 05:40:44 marka Exp $ */
+/* $Id: xfrout.c,v 1.113 2003/04/22 04:08:54 marka Exp $ */
 
 #include <config.h>
 
@@ -829,6 +829,7 @@ typedef struct {
        isc_boolean_t           many_answers;
        int                     sends;          /* Send in progress */
        isc_boolean_t           shuttingdown;
+       const char              *mnemonic;      /* Style of transfer */
 } xfrout_ctx_t;
 
 static isc_result_t
@@ -1139,6 +1140,7 @@ ns_xfr_start(ns_client_t *client, dns_rdatatype_t reqtype) {
                                (format == dns_many_answers) ?
                                        ISC_TRUE : ISC_FALSE,
                                &xfr));
+       xfr->mnemonic = mnemonic;
        stream = NULL;
        db = NULL;
        ver = NULL;
@@ -1236,6 +1238,7 @@ xfrout_ctx_create(isc_mem_t *mctx, ns_client_t *client, unsigned int id,
        xfr->many_answers = many_answers,
        xfr->sends = 0;
        xfr->shuttingdown = ISC_FALSE;
+       xfr->mnemonic = NULL;
 
        /*
         * Allocate a temporary buffer for the uncompressed response
@@ -1619,8 +1622,7 @@ xfrout_senddone(isc_task_t *task, isc_event_t *event) {
                sendstream(xfr);
        } else {
                /* End of zone transfer stream. */
-               xfrout_log(xfr, ISC_LOG_DEBUG(6),
-                          "end of transfer");
+               xfrout_log(xfr, ISC_LOG_INFO, "%s ended", xfr->mnemonic);
                ns_client_next(xfr->client, ISC_R_SUCCESS);
                xfrout_ctx_destroy(&xfr);
        }