Show More
@@ -36,6 +36,7 b' from dogpile.cache.util import memoized_' | |||||
36 | from pyramid.settings import asbool |
|
36 | from pyramid.settings import asbool | |
37 |
|
37 | |||
38 | from rhodecode.lib.memory_lru_dict import LRUDict, LRUDictDebug |
|
38 | from rhodecode.lib.memory_lru_dict import LRUDict, LRUDictDebug | |
|
39 | from rhodecode.lib.utils import safe_str | |||
39 |
|
40 | |||
40 |
|
41 | |||
41 | _default_max_size = 1024 |
|
42 | _default_max_size = 1024 | |
@@ -299,7 +300,7 b' class BaseRedisBackend(redis_backend.Red' | |||||
299 |
|
300 | |||
300 | def get_mutex(self, key): |
|
301 | def get_mutex(self, key): | |
301 | if self.distributed_lock: |
|
302 | if self.distributed_lock: | |
302 | lock_key = redis_backend.u('_lock_{0}').format(key) |
|
303 | lock_key = redis_backend.u('_lock_{0}').format(safe_str(key)) | |
303 | return get_mutex_lock(self.client, lock_key, self._lock_timeout, |
|
304 | return get_mutex_lock(self.client, lock_key, self._lock_timeout, | |
304 | auto_renewal=self._lock_auto_renewal) |
|
305 | auto_renewal=self._lock_auto_renewal) | |
305 | else: |
|
306 | else: |
General Comments 0
You need to be logged in to leave comments.
Login now