diff options
author | Erik Johnston <erik@matrix.org> | 2020-08-19 10:39:31 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-19 10:39:31 +0100 |
commit | 76d21d14a042756b0c8a8f520dfd9ea09cf092c7 (patch) | |
tree | 8d24252c5e3bdcff215a8536da4bec429fd6fbbd /changelog.d/8113.misc | |
parent | Convert events worker database to async/await. (#8071) (diff) | |
download | synapse-76d21d14a042756b0c8a8f520dfd9ea09cf092c7.tar.xz |
Separate `get_current_token` into two. (#8113)
The function is used for two purposes: 1) for subscribers of streams to get a token they can use to get further updates with, and 2) for replication to track position of the writers of the stream. For streams with a single writer the two scenarios produce the same result, however the situation becomes complicated for streams with multiple writers. The current `MultiWriterIdGenerator` does not correctly handle the first case (which is not an issue as its only used for the `caches` stream which nothing subscribes to outside of replication).
Diffstat (limited to 'changelog.d/8113.misc')
-rw-r--r-- | changelog.d/8113.misc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/changelog.d/8113.misc b/changelog.d/8113.misc new file mode 100644 index 0000000000..00bec4f8ef --- /dev/null +++ b/changelog.d/8113.misc @@ -0,0 +1 @@ +Separate `get_current_token` into two since there are two different use cases for it. |