From: Mark Andrews Date: Tue, 20 Jul 2004 07:39:31 +0000 (+0000) Subject: 1686. [bug] Named sent a extraneous NOTIFY when it received a X-Git-Tag: v9.2.4rc7~17^2~2 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=8bcfe7952124a7aab5ae9fbb9420417b5be12721;p=thirdparty%2Fbind9.git 1686. [bug] Named sent a extraneous NOTIFY when it received a redundant UPDATE request. [RT #11943] --- diff --git a/CHANGES b/CHANGES index 24aa467ba49..6272be0c7a6 100644 --- a/CHANGES +++ b/CHANGES @@ -1,5 +1,8 @@ 1688. [bug] LDFLAGS was not supported. +1686. [bug] Named sent a extraneous NOTIFY when it received a + redundant UPDATE request. [RT #11943] + 1685. [bug] Change #1679 loop tests weren't quite right. 1684. [placeholder] rt10704 diff --git a/bin/named/update.c b/bin/named/update.c index b4051ecda85..339cbfa1c1c 100644 --- a/bin/named/update.c +++ b/bin/named/update.c @@ -15,7 +15,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: update.c,v 1.114 2004/06/20 23:57:13 marka Exp $ */ +/* $Id: update.c,v 1.115 2004/07/20 07:39:31 marka Exp $ */ #include @@ -2633,26 +2633,29 @@ update_action(isc_task_t *task, isc_event_t *event) { dns_journal_destroy(&journal); } - } - /* - * XXXRTH Just a note that this committing code will have to change - * to handle databases that need two-phase commit, but this - * isn't a priority. - */ - update_log(client, zone, LOGLEVEL_DEBUG, - "committing update transaction"); - dns_db_closeversion(db, &ver, ISC_TRUE); + /* + * XXXRTH Just a note that this committing code will have + * to change to handle databases that need two-phase + * commit, but this isn't a priority. + */ + update_log(client, zone, LOGLEVEL_DEBUG, + "committing update transaction"); + dns_db_closeversion(db, &ver, ISC_TRUE); - /* - * Mark the zone as dirty so that it will be written to disk. - */ - dns_zone_markdirty(zone); + /* + * Mark the zone as dirty so that it will be written to disk. + */ + dns_zone_markdirty(zone); - /* - * Notify slaves of the change we just made. - */ - dns_zone_notify(zone); + /* + * Notify slaves of the change we just made. + */ + dns_zone_notify(zone); + } else { + update_log(client, zone, LOGLEVEL_DEBUG, "redundant request"); + dns_db_closeversion(db, &ver, ISC_TRUE); + } result = ISC_R_SUCCESS; goto common;