Fixed #6413 -- Fixed a deadlock situation in the locmem culling implementation.
Thanks, Joe Holloway. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8090 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
108b604b51
commit
66612ef529
|
@ -107,7 +107,7 @@ class CacheClass(BaseCache):
|
||||||
else:
|
else:
|
||||||
doomed = [k for (i, k) in enumerate(self._cache) if i % self._cull_frequency == 0]
|
doomed = [k for (i, k) in enumerate(self._cache) if i % self._cull_frequency == 0]
|
||||||
for k in doomed:
|
for k in doomed:
|
||||||
self.delete(k)
|
self._delete(k)
|
||||||
|
|
||||||
def _delete(self, key):
|
def _delete(self, key):
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue