From d5c1fec74c991a7c0df1f85445cfda213b392577 Mon Sep 17 00:00:00 2001 From: Bob Halley Date: Wed, 22 Nov 2000 01:56:02 +0000 Subject: [PATCH] do not force replacement mode for singleton types --- lib/dns/rbtdb.c | 22 ++++------------------ 1 file changed, 4 insertions(+), 18 deletions(-) diff --git a/lib/dns/rbtdb.c b/lib/dns/rbtdb.c index 9d8980f1c4..c23afa00e6 100644 --- a/lib/dns/rbtdb.c +++ b/lib/dns/rbtdb.c @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: rbtdb.c,v 1.133 2000/11/22 00:18:33 halley Exp $ */ +/* $Id: rbtdb.c,v 1.134 2000/11/22 01:56:02 halley Exp $ */ /* * Principal Author: Bob Halley @@ -3264,24 +3264,10 @@ add(dns_rbtdb_t *rbtdb, dns_rbtnode_t *rbtnode, rbtdb_version_t *rbtversion, } /* - * Turn off merging in certain cases. + * Don't merge if a nonexistent rdataset is involved. */ - if (merge) { - if (header_nx || newheader_nx) { - /* - * Don't merge if a nonexistent rdataset is - * involved. - */ - merge = ISC_FALSE; - } else { - /* - * Do not merge singleton types. - */ - rdtype = RBTDB_RDATATYPE_BASE(newheader->type); - if (dns_rdatatype_issingleton(rdtype)) - merge = ISC_FALSE; - } - } + if (merge && (header_nx || newheader_nx)) + merge = ISC_FALSE; /* * If 'merge' is ISC_TRUE, we'll try to create a new rdataset