]> git.ipfire.org Git - thirdparty/squid.git/commit
Fix CertficateDB locking scheme
authorChristos Tsantilas <chtsanti@users.sourceforge.net>
Thu, 6 Oct 2011 18:18:24 +0000 (21:18 +0300)
committerChristos Tsantilas <chtsanti@users.sourceforge.net>
Thu, 6 Oct 2011 18:18:24 +0000 (21:18 +0300)
commit5b3d088d0484af66490a433ee4d0a71bdbef28de
treeafc5696f1d38d20d30815dc70ce43caae95bc034
parentc25c28365140e9f5f816b72ad18aad61d13bbaa2
Fix CertficateDB locking scheme

Currently we are locking every file going to be accessed by CertificateDB code
even if it is not realy needed, because of a more general lock.

This patch:
   - Replace the old FileLocker class with the pair Lock/Locker classes
   - Remove most of the locks in CertificateDB with only two locks one
     for main database locking and one lock for the file contain the
     current serial number.

This is a Measurement Factory project
src/ssl/certificate_db.cc
src/ssl/certificate_db.h