mirror of
https://mau.dev/maunium/synapse.git
synced 2024-09-29 20:55:39 +00:00
466f344547
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. |
||
---|---|---|
.. | ||
.gitignore | ||
17083.misc | ||
17147.feature | ||
17167.feature | ||
17176.misc | ||
17204.doc | ||
17211.misc | ||
17213.feature | ||
17216.misc | ||
17219.feature | ||
17226.misc | ||
17238.misc | ||
17239.misc | ||
17240.bugfix | ||
17241.bugfix |