anonymousland-synapse/changelog.d
Erik Johnston ae7858f184
Fix race when persisting an event and deleting a room (#12594)
This works by taking a row level lock on the `rooms` table at the start of both transactions, ensuring that they don't run at the same time. In the event persistence transaction we also check that there is an entry still in the `rooms` table.

I can't figure out how to do this in SQLite. I was just going to lock the table, but it seems that we don't support that in SQLite either, so I'm *really* confused as to how we maintain integrity in SQLite when using `lock_table`....
2022-05-03 11:47:21 +01:00
..
.gitignore
12356.misc Make scripts-dev pass mypy --disallow-untyped-defs (#12356) 2022-04-27 13:10:31 +00:00
12406.feature Add a module API to allow modules to edit push rule actions (#12406) 2022-04-27 13:55:33 +00:00
12480.misc Use supervisord to supervise Postgres and Caddy in the Complement image. (#12480) 2022-04-27 14:39:41 +01:00
12485.misc Add some type hints to datastore (#12485) 2022-04-27 13:05:00 +01:00
12505.misc Prefer make_awaitable over defer.succeed in tests (#12505) 2022-04-27 14:58:26 +01:00
12526.feature Add option to enable token registration without requiring 3pids (#12526) 2022-04-27 12:57:53 +00:00
12531.misc Remove unused # type: ignores (#12531) 2022-04-27 14:03:44 +01:00
12541.docker Mark Dockerfile as requiring BuildKit (#12541) 2022-04-26 15:31:52 +01:00
12544.bugfix Bound ephemeral events by key (#12544) 2022-04-26 20:14:21 +01:00
12564.misc Consistently use collections.abc.Mapping to check frozendict. (#12564) 2022-04-27 09:00:07 -04:00
12576.misc Allow unused ignores in "bleeding edge" CI (#12576) 2022-04-29 17:57:23 +01:00
12579.doc Add linebreak to pipx install quote in README (#12579) 2022-04-28 13:54:46 +01:00
12580.bugfix Fix logging of incorrect status codes for disconnected requests (#12580) 2022-04-28 15:49:50 +00:00
12581.misc Improve the docstrings for the receipts store. (#12581) 2022-04-28 17:58:58 +00:00
12582.misc Use constants for receipt types in tests. (#12582) 2022-04-28 13:34:33 -04:00
12589.misc Remove special-case for twisted logger (#12589) 2022-04-29 22:05:18 +01:00
12594.bugfix Fix race when persisting an event and deleting a room (#12594) 2022-05-03 11:47:21 +01:00
12608.misc Prune mypy ignore_missing_imports list (#12608) 2022-05-03 11:03:20 +01:00