Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Petr Menšík
BIND
Commits
d5c1fec7
Commit
d5c1fec7
authored
Nov 22, 2000
by
Bob Halley
Browse files
do not force replacement mode for singleton types
parent
bab57cc8
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/dns/rbtdb.c
View file @
d5c1fec7
...
...
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: rbtdb.c,v 1.13
3
2000/11/22 0
0:18:33
halley Exp $ */
/* $Id: rbtdb.c,v 1.13
4
2000/11/22 0
1: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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment