]> git.ipfire.org Git - thirdparty/squid.git/commit - src/structs.h
Polished skipping of cache_dirs inactive in a given strand (e.g. Coordinator)
authorAlex Rousskov <rousskov@measurement-factory.com>
Wed, 2 Feb 2011 01:49:34 +0000 (18:49 -0700)
committerAlex Rousskov <rousskov@measurement-factory.com>
Wed, 2 Feb 2011 01:49:34 +0000 (18:49 -0700)
commit14911a4e01015b5b559b25fad08f2185d46c7190
tree17e469b1968936d05561f778d132609ecb8440a5
parent95be26ed834fa89ac6da8e0e85559614e846364c
Polished skipping of cache_dirs inactive in a given strand (e.g. Coordinator)
by adding SwapDir::active() method. The directory is active if it makes sense
to call its init/create/get methods in a given strand.

Fixed counting cache_dirs that need dedicated strands. We no longer assume
that all cache_dirs do but use SwapDir::needsDiskStrand() to ask each dir.
The result is stored in Config.cacheSwap.n_strands to optimize NumberOfKids().
src/StoreHashIndex.h
src/SwapDir.cc
src/SwapDir.h
src/cache_cf.cc
src/fs/rock/RockSwapDir.cc
src/fs/rock/RockSwapDir.h
src/store_dir.cc
src/structs.h
src/tools.cc