]> git.ipfire.org Git - thirdparty/squid.git/commit
Ignore and warn about attempts to reconfigure static Rock store options.
authorDmitry Kurochkin <dmitry.kurochkin@measurement-factory.com>
Thu, 22 Sep 2011 21:36:59 +0000 (15:36 -0600)
committerAlex Rousskov <rousskov@measurement-factory.com>
Thu, 22 Sep 2011 21:36:59 +0000 (15:36 -0600)
commit2406351209485f1da26492803a8c706589783218
tree8d0d6f2b5ed2919e193b4bd2982ecadc816c3899
parent1bf6c6e76a1a40721e597297757eaaa4d4d970bf
Ignore and warn about attempts to reconfigure static Rock store options.

Some Rock store options cannot be changed dynamically: path, size, and
max-size.  Before the change, there were no checks during reconfigure
to prevent changing these options.  This may lead to Rock cache
corruption and other bugs.  The patch adds necessary checks to Rock
store code.  If user tries to change an option that cannot be updated
dynamically, a warning is reported and the value is left unchanged.
src/SwapDir.cc
src/SwapDir.h
src/fs/rock/RockSwapDir.cc
src/fs/rock/RockSwapDir.h