#define DNS_RDATASET_COUNT 0
#endif /* DNS_RDATASET_FIXED */
+ISC_NO_SANITIZE_THREAD static ISC_NO_SANITIZE_INLINE unsigned int
+get_init_count(void) {
+ unsigned int value = DNS_RBTDB_INC(init_count);
+ return (value);
+}
+
+ISC_NO_SANITIZE_THREAD static ISC_NO_SANITIZE_INLINE unsigned int
+get_header_count(rdatasetheader_t *header) {
+ unsigned int value = DNS_RBTDB_INC(header->count);
+ return (value);
+}
+
/*
* DB Routines
*/
rdataset->private2 = node;
raw = (unsigned char *)header + sizeof(*header);
rdataset->private3 = raw;
- rdataset->count = DNS_RBTDB_INC(header->count);
+ rdataset->count = get_header_count(header);
if (rdataset->count == UINT32_MAX)
rdataset->count = 0;
newheader->attributes |= RDATASET_ATTR_ZEROTTL;
newheader->noqname = NULL;
newheader->closest = NULL;
- newheader->count = DNS_RBTDB_INC(init_count);
+ newheader->count = get_init_count();
newheader->trust = rdataset->trust;
newheader->additional_auth = NULL;
newheader->additional_glue = NULL;
newheader->trust = 0;
newheader->noqname = NULL;
newheader->closest = NULL;
- newheader->count = DNS_RBTDB_INC(init_count);
+ newheader->count = get_init_count();
newheader->additional_auth = NULL;
newheader->additional_glue = NULL;
newheader->last_used = 0;
newheader->serial = 1;
newheader->noqname = NULL;
newheader->closest = NULL;
- newheader->count = DNS_RBTDB_INC(init_count);
+ newheader->count = get_init_count();
newheader->additional_auth = NULL;
newheader->additional_glue = NULL;
newheader->last_used = 0;