summary refs log tree commit diff
path: root/synapse/storage/databases/main/lock.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Type hint the constructors of the data store classes (#11555)Sean Quah2021-12-131-3/+11
|
* Add type hints to some storage classes (#11307)Patrick Cloke2021-11-111-2/+4
|
* Handle federation inbound instances being killed more gracefully (#11262)Erik Johnston2021-11-081-10/+21
| | | | | | | | | | | | | | | | | * Make lock better handle process being killed If the process gets killed and restarted (so that it didn't have a chance to drop its locks gracefully) then there may still be locks in the DB that are for the same instance that haven't yet timed out but are safe to delete. We handle this case by a) checking if the current instance already has taken out the lock, and b) if not then ignoring locks that are for the same instance. * Periodically check for old staged events This is to protect against other instances dying and their locks timing out.
* Fix dropping locks on shut down (#10433)Erik Johnston2021-07-201-1/+5
|
* Ensure we always drop the federation inbound lock (#10336)Erik Johnston2021-07-091-2/+13
|
* Add a distributed lock (#10269)Erik Johnston2021-06-291-0/+334
This adds a simple best effort locking mechanism that works cross workers.