mdipierro/web2py — pull request #19 by finagler (2012-04-21 02:48:15+00:00)
Title: Fixes issue #765 and issue #766 (race condition potentially causing cach...

...e corruption and deadlock). Isolates most of the locking and unlocking in the CacheOnDisk._open_shelf_with_lock method, which replaces the close method of the returned shelf function with one that releases the lock after closing.