]> git.ipfire.org Git - thirdparty/squid.git/commit
Fix order dependency between cache_dir and maximum_object_size
authorAnatoli <me@anatoli.ws>
Tue, 29 Apr 2014 18:08:35 +0000 (06:08 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Tue, 29 Apr 2014 18:08:35 +0000 (06:08 +1200)
commit499f852c115b1d9827376a8491b24c7c53b69cb1
tree25159929a8b2e48b9fe9ce572a3ceffa254cb087
parent4e3f4dc76d5d21fdc0a17c7f04b6e86ca3d1a382
Fix order dependency between cache_dir and maximum_object_size

parse_cachedir() has a call to update_maxobjsize() which limits the
store_maxobjsize variable used as the internal maximum_object_size
variable of the store data structure) to the value of maximum_object_size
defined at the moment of execution of this function, for all stores (all
store directories). So if parse for cache_dir is called before
maximum_object_size, we get the effect of the default 4 MB.

BUT, when we get to parse maximum_object_size line(s) after the last
cache_dir, the maximum_object_size option is processed and only shown on
the cachemgr config page without having updated store_maxobjsize.
src/cache_cf.cc
src/cf.data.pre