]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Increase nodelock count for both cache and regular db.
authorWitold Kręcicki <wpk@isc.org>
Tue, 28 Jan 2020 10:53:24 +0000 (11:53 +0100)
committerWitold Kręcicki <wpk@isc.org>
Fri, 28 Feb 2020 07:46:16 +0000 (08:46 +0100)
lib/dns/rbtdb.c

index d6d9757ec98fc1c2608f41ce82f132a1c71e58a7..7a935918ac3caa6aed61a7c022a0f76877bc9fa0 100644 (file)
@@ -306,7 +306,7 @@ typedef ISC_LIST(dns_rbtnode_t) rbtnodelist_t;
        (((header)->rdh_ttl > (now)) || \
         ((header)->rdh_ttl == (now) && ZEROTTL(header)))
 
-#define DEFAULT_NODE_LOCK_COUNT           7 /*%< Should be prime. */
+#define DEFAULT_NODE_LOCK_COUNT           53 /*%< Should be prime. */
 #define RBTDB_GLUE_TABLE_INIT_SIZE 2U
 
 /*%
@@ -326,7 +326,7 @@ typedef ISC_LIST(dns_rbtnode_t) rbtnodelist_t;
 #define DEFAULT_CACHE_NODE_LOCK_COUNT DNS_RBTDB_CACHE_NODE_LOCK_COUNT
 #endif /* if DNS_RBTDB_CACHE_NODE_LOCK_COUNT <= 1 */
 #else  /* ifdef DNS_RBTDB_CACHE_NODE_LOCK_COUNT */
-#define DEFAULT_CACHE_NODE_LOCK_COUNT 16
+#define DEFAULT_CACHE_NODE_LOCK_COUNT 97
 #endif /* DNS_RBTDB_CACHE_NODE_LOCK_COUNT */
 
 typedef struct {