]> git.ipfire.org Git - thirdparty/squid.git/commit
Split lock() into "just lock" and "update entry reference time" interfaces.
authorAlex Rousskov <rousskov@measurement-factory.com>
Mon, 7 Jan 2013 17:18:10 +0000 (10:18 -0700)
committerAlex Rousskov <rousskov@measurement-factory.com>
Mon, 7 Jan 2013 17:18:10 +0000 (10:18 -0700)
commit189949922411cc0519ff16b7a0c962be19c49aae
treee8c8908b301b218e49547911d04cc37b93a0db20
parent383ff927bdbd965c93986c8e73e05c8c4ddb0932
Split lock() into "just lock" and "update entry reference time" interfaces.
Improved entry lock/unlock debugging.

Several modern store entry users need to lock the entry for storage rather
then to update entry's reference time. There is an old XXX describing the
corresponding API bug that merges the two distinct operations. This change
does not modify existing code, but allows new code to use new/fixed API
instead of changing an essentially private entry lock counter.
src/Store.h
src/store.cc