Compare commits

...

2 Commits

Author SHA1 Message Date
Ondřej Surý
6748bb0fa0 Cripple adjusthashsize 2021-12-10 17:04:47 +01:00
Ondřej Surý
443d6d9a6e WIP: disable rbt hash table prehashing 2021-12-09 18:25:59 +01:00
2 changed files with 4 additions and 1 deletions

View File

@@ -959,7 +959,7 @@ dns_cache_setcachesize(dns_cache_t *cache, size_t size) {
isc_mem_setwater(cache->mctx, water, cache, hiwater, lowater);
}
dns_db_adjusthashsize(cache->db, size);
/* dns_db_adjusthashsize(cache->db, size); */
}
size_t

View File

@@ -1082,6 +1082,8 @@ isc_result_t
dns_rbt_adjusthashsize(dns_rbt_t *rbt, size_t size) {
REQUIRE(VALID_RBT(rbt));
UNUSED(size);
#if 0
if (size > 0) {
/*
* Setting a new, finite size limit was requested for the RBT.
@@ -1104,6 +1106,7 @@ dns_rbt_adjusthashsize(dns_rbt_t *rbt, size_t size) {
*/
rbt->maxhashbits = RBT_HASH_MAX_BITS;
}
#endif
return (ISC_R_SUCCESS);
}