forked-synapse/synapse
Erik Johnston 466f344547
Move towards using MultiWriterIdGenerator everywhere (#17226)
There is a problem with `StreamIdGenerator` where it can go backwards
over restarts when a stream ID is requested but then not inserted into
the DB. This is problematic if we want to land #17215, and is generally
a potential cause for all sorts of nastiness.

Instead of trying to fix `StreamIdGenerator`, we may as well move to
`MultiWriterIdGenerator` that does not suffer from this problem (the
latest positions are stored in `stream_positions` table). This involves
adding SQLite support to the class.

This only changes id generators that were already using
`MultiWriterIdGenerator` under postgres, a separate PR will move the
rest of the uses of `StreamIdGenerator` over.
2024-05-29 12:19:10 +00:00
..
_scripts Add support for MSC3823 - Account Suspension (#17051) 2024-05-01 17:45:17 +01:00
api Add a short sleep if the request is rate-limited (#17210) 2024-05-18 12:03:30 +01:00
app Bring auto-accept invite logic into Synapse (#17147) 2024-05-21 20:09:17 +00:00
appservice Bump black from 23.10.1 to 24.2.0 (#16936) 2024-03-13 16:46:44 +00:00
config Support MSC3916 by adding unstable media endpoints to _matrix/client (#17213) 2024-05-24 09:47:37 +01:00
crypto Only do one concurrent fetch per server in keyring (#16894) 2024-02-09 10:51:11 +00:00
events Bring auto-accept invite logic into Synapse (#17147) 2024-05-21 20:09:17 +00:00
federation Optional whitespace support in Authorization (#1350) (#17145) 2024-05-08 13:56:16 +00:00
handlers Don't invalidate all get_relations_for_event on history purge (#17083) 2024-05-29 12:57:10 +01:00
http MSC4108 implementation (#17056) 2024-04-25 12:50:12 +00:00
logging Bump mypy from 1.5.1 to 1.8.0 (#16901) 2024-03-13 17:05:57 +00:00
media Fix slipped logging context when media rejected (#17239) 2024-05-29 11:14:42 +01:00
metrics Bump black from 23.10.1 to 24.2.0 (#16936) 2024-03-13 16:46:44 +00:00
module_api Bump mypy from 1.5.1 to 1.8.0 (#16901) 2024-03-13 17:05:57 +00:00
push Add support for MSC4115 (#17104) 2024-04-29 15:22:13 +01:00
replication Improve perf of sync device lists (#17216) 2024-05-21 16:48:20 +01:00
res Send an email if the address is already bound to an user account (#16819) 2024-04-23 16:45:24 +01:00
rest Support MSC3916 by adding unstable media endpoints to _matrix/client (#17213) 2024-05-24 09:47:37 +01:00
server_notices Merge remote-tracking branch 'gitlab/clokep/license-license' into new_develop 2023-12-13 15:11:56 +00:00
spam_checker_api Correctly mention previous copyright (#16820) 2024-01-23 11:26:48 +00:00
state Bump black from 23.10.1 to 24.2.0 (#16936) 2024-03-13 16:46:44 +00:00
static Update link to the clients webpage, fix #15825 (#15874) 2023-07-06 17:28:09 +02:00
storage Move towards using MultiWriterIdGenerator everywhere (#17226) 2024-05-29 12:19:10 +00:00
streams Bump mypy from 1.5.1 to 1.8.0 (#16901) 2024-03-13 17:05:57 +00:00
synapse_rust MSC4108 implementation (#17056) 2024-04-25 12:50:12 +00:00
types Add support for MSC3823 - Account Suspension (#17051) 2024-05-01 17:45:17 +01:00
util Add logging to tasks managed by the task scheduler, showing CPU and database usage. (#17219) 2024-05-22 14:12:58 +01:00
__init__.py Correctly mention previous copyright (#16820) 2024-01-23 11:26:48 +00:00
_pydantic_compat.py Correctly mention previous copyright (#16820) 2024-01-23 11:26:48 +00:00
event_auth.py Bump black from 23.10.1 to 24.2.0 (#16936) 2024-03-13 16:46:44 +00:00
notifier.py Add support for MSC4115 (#17104) 2024-04-29 15:22:13 +01:00
py.typed Mark Module API error imports as re-exported and mark Synapse as containing type annotations (#11054) 2021-10-13 08:42:41 +01:00
server.py MSC4108 implementation (#17056) 2024-04-25 12:50:12 +00:00
visibility.py Add support for MSC4115 (#17104) 2024-04-29 15:22:13 +01:00