]> git.ipfire.org Git - thirdparty/squid.git/commit
Disconnect StoreEntries before deleting their memory objects.
authorAlex Rousskov <rousskov@measurement-factory.com>
Wed, 24 Jul 2013 21:48:45 +0000 (15:48 -0600)
committerAlex Rousskov <rousskov@measurement-factory.com>
Wed, 24 Jul 2013 21:48:45 +0000 (15:48 -0600)
commitfa6d2c655fb884b65eb2c2c044a81233a987a06f
tree2d86e7c10a776f4503945dfecf2e7912e8c16945
parent7ec749c6fb64dc36226427a4abb1d3a5a78aa406
Disconnect StoreEntries before deleting their memory objects.

The new cleanup order helps identify the write Rock entry state (reading or
writing) and avoid assertions related to state identification bugs (such
as unlocking a writing entry for reading).

Similar to the memory cache code, we should not disconnect disk entries during
shutdown because Store::Root() may be missing by then.
src/store.cc