2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 06:25:31 +00:00

[master] accept >4g max-{,a}cache-size

3506.	[func]		When setting "max-cache-size" and "max-acache-size",
			the keyword "unlimited" is no longer defined as equal
			to 4 gigabytes (except on 32-bit platforms); it
			means literally unlimited. [RT #32358]

3505.	[bug]		When setting "max-cache-size" and "max-acache-size",
			larger values than 4 gigabytes could not be set
			explicitly, though larger sizes were available
			when setting cache size to 0. This has been
			corrected; the full range is now available.
			[RT #32358]
This commit is contained in:
Evan Hunt
2013-02-28 09:29:12 -08:00
parent 33c14ca653
commit 2a184ff865
10 changed files with 73 additions and 72 deletions

View File

@@ -139,7 +139,7 @@ struct dns_cache {
char *db_type;
int db_argc;
char **db_argv;
isc_uint32_t size;
size_t size;
isc_stats_t *stats;
/* Locked by 'filelock'. */
@@ -1048,9 +1048,8 @@ water(void *arg, int mark) {
}
void
dns_cache_setcachesize(dns_cache_t *cache, isc_uint32_t size) {
isc_uint32_t lowater;
isc_uint32_t hiwater;
dns_cache_setcachesize(dns_cache_t *cache, size_t size) {
size_t hiwater, lowater;
REQUIRE(VALID_CACHE(cache));
@@ -1088,9 +1087,9 @@ dns_cache_setcachesize(dns_cache_t *cache, isc_uint32_t size) {
isc_mem_setwater(cache->mctx, water, cache, hiwater, lowater);
}
isc_uint32_t
size_t
dns_cache_getcachesize(dns_cache_t *cache) {
isc_uint32_t size;
size_t size;
REQUIRE(VALID_CACHE(cache));