From de389382bee45c74785b1dd52f8b397dad71bb0d Mon Sep 17 00:00:00 2001 From: Andreas Gustafsson Date: Wed, 22 Nov 2000 02:49:57 +0000 Subject: [PATCH] when doing the automatic SOA serial update following a dynamic update, delete the old SOA then add the updated one instead of the other way around (otherwise the new database singleton type rules will cause the add to fail) --- bin/named/update.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/named/update.c b/bin/named/update.c index 703720f541..3de004d91f 100644 --- a/bin/named/update.c +++ b/bin/named/update.c @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: update.c,v 1.73 2000/11/15 19:04:41 gson Exp $ */ +/* $Id: update.c,v 1.74 2000/11/22 02:49:57 gson Exp $ */ #include @@ -1073,8 +1073,8 @@ increment_soa_serial(dns_db_t *db, dns_dbversion_t *ver, serial = 1; dns_soa_setserial(serial, &addtuple->rdata); - CHECK(do_one_tuple(&addtuple, db, ver, diff)); CHECK(do_one_tuple(&deltuple, db, ver, diff)); + CHECK(do_one_tuple(&addtuple, db, ver, diff)); result = ISC_R_SUCCESS; failure: