2590. [func] Report zone/class of "diff with no effect". [RT #19542]

This commit is contained in:
Mark Andrews
2009-04-30 06:53:10 +00:00
parent 542b74bec7
commit d2c115f913
2 changed files with 17 additions and 3 deletions

View File

@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: diff.c,v 1.20 2009/01/05 23:47:53 tbox Exp $ */
/* $Id: diff.c,v 1.21 2009/04/30 06:53:10 marka Exp $ */
/*! \file */
@@ -387,10 +387,22 @@ diff_apply(dns_diff_t *diff, dns_db_t *db, dns_dbversion_t *ver,
* from a server that is not as careful.
* Issue a warning and continue.
*/
if (warn)
if (warn) {
char classbuf[DNS_RDATATYPE_FORMATSIZE];
char namebuf[DNS_NAME_FORMATSIZE];
dns_name_format(dns_db_origin(db),
namebuf,
sizeof(namebuf));
dns_rdataclass_format(dns_db_class(db),
classbuf,
sizeof(classbuf));
isc_log_write(DIFF_COMMON_LOGARGS,
ISC_LOG_WARNING,
"update with no effect");
"%s/%s: update with no "
" effect", namebuf,
classbuf);
}
} else if (result == DNS_R_NXRRSET) {
/*
* OK.