]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Make memory_pools_limit an int64_t to handle signed "none" values.
authorAmos Jeffries <amosjeffries@squid-cache.org>
Thu, 29 Jul 2010 13:04:44 +0000 (07:04 -0600)
committerAmos Jeffries <amosjeffries@squid-cache.org>
Thu, 29 Jul 2010 13:04:44 +0000 (07:04 -0600)
src/cf.data.pre
src/mem.cc
src/structs.h

index 6ac87df1fdc682362ac60b81988cb811730cfb5a..fbf95e281573fb3ec3afa532f7bad29270631ded 100644 (file)
@@ -6695,7 +6695,7 @@ DOC_END
 
 NAME: memory_pools_limit
 COMMENT: (bytes)
-TYPE: b_size_t
+TYPE: b_int64_t
 DEFAULT: 5 MB
 LOC: Config.MemPools.limit
 DOC_START
@@ -6714,7 +6714,7 @@ DOC_START
        will be no limit on the total amount of memory used for safe-keeping.
 
        To disable memory allocation optimization, do not set
-       memory_pools_limit to 0. Set memory_pools to "off" instead.
+       memory_pools_limit to 0 or none. Set memory_pools to "off" instead.
 
        An overhead for maintaining memory pools is not taken into account
        when the limit is checked. This overhead is close to four bytes per
index 48ec16e8377b89d59bc5f8442259a989e896385a..a94cf5545c1a887e3fb136e244523bb389105ede 100644 (file)
@@ -346,7 +346,7 @@ Mem::CleanIdlePools(void *unused)
 void
 memConfigure(void)
 {
-    size_t new_pool_limit;
+    int64_t new_pool_limit;
 
     /** Set to configured value first */
     if (!Config.onoff.mem_pools)
index 819d63029baa19796378ab6bccbc294ebb95bde7..f0c6d7c5c69c434657ac97b758b44148b1a35ee8 100644 (file)
@@ -526,7 +526,7 @@ struct SquidConfig {
     } retry;
 
     struct {
-        size_t limit;
+        int64_t limit;
     } MemPools;
 #if DELAY_POOLS