diff options
author | Erik Johnston <erikj@element.io> | 2024-07-02 12:39:49 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-02 12:39:49 +0100 |
commit | b3b793786c82383edec6c7d3226d98dbafe3b098 (patch) | |
tree | 42799dd94510980636618488995ed133bcf4d73c /synapse/media/media_storage.py | |
parent | Fix building debian packages on non-clean checkouts (#17390) (diff) | |
download | synapse-b3b793786c82383edec6c7d3226d98dbafe3b098.tar.xz |
Fix sync waiting for an invalid token from the "future" (#17386)
Fixes https://github.com/element-hq/synapse/issues/17274, hopefully. Basically, old versions of Synapse could advance streams without persisting anything in the DB (fixed in #17229). On restart those updates would get lost, and so the position of the stream would revert to an older position. If this happened across an upgrade to a later Synapse version which included #17215, then sync could get blocked indefinitely (until the stream advanced to the position in the token). We fix this by bounding the stream positions we'll wait for to the maximum position of the underlying stream ID generator.
Diffstat (limited to 'synapse/media/media_storage.py')
0 files changed, 0 insertions, 0 deletions