Show More
@@ -36,7 +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 | from rhodecode.lib.utils import safe_str, safe_unicode | |
40 |
|
40 | |||
41 |
|
41 | |||
42 | _default_max_size = 1024 |
|
42 | _default_max_size = 1024 | |
@@ -300,7 +300,7 b' class BaseRedisBackend(redis_backend.Red' | |||||
300 |
|
300 | |||
301 | def get_mutex(self, key): |
|
301 | def get_mutex(self, key): | |
302 | if self.distributed_lock: |
|
302 | if self.distributed_lock: | |
303 |
lock_key = redis_backend.u('_lock_{0}' |
|
303 | lock_key = redis_backend.u(u'_lock_{0}'.format(safe_unicode(key))) | |
304 | return get_mutex_lock(self.client, lock_key, self._lock_timeout, |
|
304 | return get_mutex_lock(self.client, lock_key, self._lock_timeout, | |
305 | auto_renewal=self._lock_auto_renewal) |
|
305 | auto_renewal=self._lock_auto_renewal) | |
306 | else: |
|
306 | else: |
General Comments 0
You need to be logged in to leave comments.
Login now