# HG changeset patch # User RhodeCode Admin # Date 2021-07-27 08:07:58 # Node ID 5574e45a088a97269b287a92d78c1276be0870bc # Parent e940b121fb057d34b73ac884183d894f08a7cbed lock: handle refresh thread already started diff --git a/vcsserver/lib/rc_cache/backends.py b/vcsserver/lib/rc_cache/backends.py --- a/vcsserver/lib/rc_cache/backends.py +++ b/vcsserver/lib/rc_cache/backends.py @@ -306,6 +306,9 @@ def get_mutex_lock(client, lock_key, loc return self.lock.acquire(wait) except redis_lock.AlreadyAcquired: return False + except redis_lock.AlreadyStarted: + # refresh thread exists, but it also means we acquired the lock + return True def release(self): try: