Browse files

Fixed #9626 -- Fixed a deletion race in the locmem cache.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
malcolmt committed Mar 8, 2009
1 parent 6e415a5 commit 392f81cba91310a93409c7b83a507c69736a19d2
Showing with 5 additions and 2 deletions.
  1. +5 −2 django/core/cache/backends/
@@ -96,8 +96,11 @@ def has_key(self, key):
self._lock.writer_enters() self._lock.writer_enters()
try: try:
del self._cache[key] try:
del self._expire_info[key] del self._cache[key]
del self._expire_info[key]
except KeyError:
return False return False
finally: finally:
self._lock.writer_leaves() self._lock.writer_leaves()

0 comments on commit 392f81c

Please sign in to comment.