diff --git a/CHANGES b/CHANGES index ecbe7988fe..05e0a1f48f 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,6 @@ +2582. [bug] Don't emit warning log message when we attempt to + remove non-existant journal. [RT #19516] + 2581. [contrib] dlz/mysql set MYSQL_OPT_RECONNECT option on connection. Requires MySQL 5.0.19 or later. [RT #19084] diff --git a/lib/dns/zone.c b/lib/dns/zone.c index 12ad3f0f56..f8f44939fc 100644 --- a/lib/dns/zone.c +++ b/lib/dns/zone.c @@ -15,7 +15,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: zone.c,v 1.488 2009/03/13 01:35:18 marka Exp $ */ +/* $Id: zone.c,v 1.489 2009/03/26 22:51:54 marka Exp $ */ /*! \file */ @@ -9560,7 +9560,7 @@ zone_replacedb(dns_zone_t *zone, dns_db_t *db, isc_boolean_t dump) { isc_log_write(dns_lctx, DNS_LOGCATEGORY_GENERAL, DNS_LOGMODULE_ZONE, ISC_LOG_DEBUG(3), "removing journal file"); - if (remove(zone->journal) < 0) { + if (remove(zone->journal) < 0 && errno != ENOENT) { char strbuf[ISC_STRERRORSIZE]; isc__strerror(errno, strbuf, sizeof(strbuf)); isc_log_write(dns_lctx,