mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-29 05:28:00 +00:00
add RBTDB wild bit
This commit is contained in:
parent
87a5360e27
commit
593d951248
@ -37,9 +37,9 @@ ISC_LANG_BEGINDECLS
|
||||
|
||||
typedef struct dns_rbt dns_rbt_t;
|
||||
|
||||
/* These should add up to 31 */
|
||||
/* These should add up to 30 */
|
||||
|
||||
#define DNS_RBT_LOCKLENGTH 11
|
||||
#define DNS_RBT_LOCKLENGTH 10
|
||||
#define DNS_RBT_REFLENGTH 20
|
||||
|
||||
typedef struct dns_rbtnode {
|
||||
@ -70,6 +70,7 @@ typedef struct dns_rbtnode {
|
||||
*/
|
||||
void *data;
|
||||
unsigned int dirty:1;
|
||||
unsigned int wild:1;
|
||||
unsigned int locknum:DNS_RBT_LOCKLENGTH;
|
||||
unsigned int references:DNS_RBT_REFLENGTH;
|
||||
} dns_rbtnode_t;
|
||||
|
@ -15,7 +15,7 @@
|
||||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: rbt.c,v 1.53 1999/05/07 12:13:25 tale Exp $ */
|
||||
/* $Id: rbt.c,v 1.54 1999/08/12 07:47:21 halley Exp $ */
|
||||
|
||||
/* Principal Authors: DCL */
|
||||
|
||||
@ -72,6 +72,7 @@ struct dns_rbt {
|
||||
* used as part of the rbt.c algorithms.
|
||||
*/
|
||||
#define DIRTY(node) ((node)->dirty)
|
||||
#define WILD(node) ((node)->wild)
|
||||
#define LOCK(node) ((node)->locknum)
|
||||
#define REFS(node) ((node)->references)
|
||||
|
||||
@ -1225,6 +1226,7 @@ create_node(isc_mem_t *mctx, dns_name_t *name, dns_rbtnode_t **nodep) {
|
||||
LOCK(node) = 0;
|
||||
REFS(node) = 0;
|
||||
DIRTY(node) = 0;
|
||||
WILD(node) = 0;
|
||||
|
||||
MAKE_BLACK(node);
|
||||
CALLBACK(node) = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user