Show More
@@ -32,6 +32,7 b' from dogpile.cache.util import memoized_' | |||||
32 | from pyramid.settings import asbool |
|
32 | from pyramid.settings import asbool | |
33 |
|
33 | |||
34 | from vcsserver.lib.memory_lru_dict import LRUDict, LRUDictDebug |
|
34 | from vcsserver.lib.memory_lru_dict import LRUDict, LRUDictDebug | |
|
35 | from vcsserver.utils import safe_str | |||
35 |
|
36 | |||
36 |
|
37 | |||
37 | _default_max_size = 1024 |
|
38 | _default_max_size = 1024 | |
@@ -264,7 +265,7 b' class BaseRedisBackend(redis_backend.Red' | |||||
264 |
|
265 | |||
265 | def get_mutex(self, key): |
|
266 | def get_mutex(self, key): | |
266 | if self.distributed_lock: |
|
267 | if self.distributed_lock: | |
267 | lock_key = redis_backend.u('_lock_{0}').format(key) |
|
268 | lock_key = redis_backend.u('_lock_{0}').format(safe_str(key)) | |
268 | return get_mutex_lock(self.client, lock_key, self._lock_timeout, |
|
269 | return get_mutex_lock(self.client, lock_key, self._lock_timeout, | |
269 | auto_renewal=self._lock_auto_renewal) |
|
270 | auto_renewal=self._lock_auto_renewal) | |
270 | else: |
|
271 | else: |
General Comments 0
You need to be logged in to leave comments.
Login now