Commit 88471538 authored by Mark Andrews's avatar Mark Andrews

2652. [func] Provide more detail about what record is being

                        deleted. [RT #20061]
parent 800fb35b
2652. [func] Provide more detail about what record is being
deleted. [RT #20061]
2651. [bug] Dates could print incorrectly in K*.key files on 2651. [bug] Dates could print incorrectly in K*.key files on
64-bit systems. [RT #20076] 64-bit systems. [RT #20076]
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE. * PERFORMANCE OF THIS SOFTWARE.
*/ */
/* $Id: update.c,v 1.158 2009/07/28 15:45:43 marka Exp $ */ /* $Id: update.c,v 1.159 2009/08/17 07:18:41 marka Exp $ */
#include <config.h> #include <config.h>
...@@ -3901,6 +3901,9 @@ update_action(isc_task_t *task, isc_event_t *event) { ...@@ -3901,6 +3901,9 @@ update_action(isc_task_t *task, isc_event_t *event) {
&diff)); &diff));
} }
} else if (update_class == dns_rdataclass_none) { } else if (update_class == dns_rdataclass_none) {
char namestr[DNS_NAME_FORMATSIZE];
char typestr[DNS_RDATATYPE_FORMATSIZE];
/* /*
* The (name == zonename) condition appears in * The (name == zonename) condition appears in
* RFC2136 3.4.2.4 but is missing from the pseudocode. * RFC2136 3.4.2.4 but is missing from the pseudocode.
...@@ -3928,11 +3931,13 @@ update_action(isc_task_t *task, isc_event_t *event) { ...@@ -3928,11 +3931,13 @@ update_action(isc_task_t *task, isc_event_t *event) {
} }
} }
} }
update_log(client, zone, dns_name_format(name, namestr, sizeof(namestr));
LOGLEVEL_PROTOCOL, dns_rdatatype_format(rdata.type, typestr,
"deleting an RR"); sizeof(typestr));
CHECK(delete_if(rr_equal_p, db, ver, name, update_log(client, zone, LOGLEVEL_PROTOCOL,
rdata.type, covers, &rdata, &diff)); "deleting an RR at %s %s", namestr, typestr);
CHECK(delete_if(rr_equal_p, db, ver, name, rdata.type,
covers, &rdata, &diff));
} }
} }
if (result != ISC_R_NOMORE) if (result != ISC_R_NOMORE)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment