Commit b1fd7650 authored by Malcolm Tredinnick's avatar Malcolm Tredinnick
Browse files

[1.0.X] Fixed #9626 -- Fixed a deletion race in the locmem cache.

Backport of r9998 from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10001 bcc190cf-cafb-0310-a4f2-bffc1f526a37
parent 055c0110
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -95,9 +95,12 @@ class CacheClass(BaseCache):
            self._lock.reader_leaves()

        self._lock.writer_enters()
        try:
            try:
                del self._cache[key]
                del self._expire_info[key]
            except KeyError:
                pass
            return False
        finally:
            self._lock.writer_leaves()