cache: use global flock to prevent recursion when using gevent workers.

This commit is contained in:
Marcin Kuzminski 2019-01-18 17:20:50 +01:00
parent 3f25bc4e13
commit 2ae54defd8

View file

@ -82,12 +82,14 @@ class Serializer(object):
raise
import fcntl
flock_org = fcntl.flock
class CustomLockFactory(FileLock):
@memoized_property
def _module(self):
import fcntl
flock_org = fcntl.flock
def gevent_flock(fd, operation):
"""