Skip to content
Snippets Groups Projects
Commit 794371b1 authored by Erik Johnston's avatar Erik Johnston
Browse files

Revert "Fix dropping locks on shut down"

This reverts commit 83f1ccfc.
parent 83f1ccfc
No related branches found
No related tags found
No related merge requests found
......@@ -78,11 +78,7 @@ class LockStore(SQLBaseStore):
"""Called when the server is shutting down"""
logger.info("Dropping held locks due to shutdown")
# We need to take a copy of the tokens dict as dropping the locks will
# cause the dictionary to change.
tokens = dict(self._live_tokens)
for (lock_name, lock_key), token in tokens.items():
for (lock_name, lock_key), token in self._live_tokens.items():
await self._drop_lock(lock_name, lock_key, token)
logger.info("Dropped locks due to shutdown")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment