forked-synapse/synapse/storage
Erik Johnston 76d21d14a0
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).
2020-08-19 10:39:31 +01:00
..
databases Separate get_current_token into two. (#8113) 2020-08-19 10:39:31 +01:00
engines Use SequenceGenerator for state group ID allocation 2020-07-16 11:25:08 +01:00
schema Only run one background update at a time 2020-03-31 17:43:58 +01:00
util Separate get_current_token into two. (#8113) 2020-08-19 10:39:31 +01:00
__init__.py Rename database classes to make some sense (#8033) 2020-08-05 21:38:57 +01:00
_base.py Convert the roommember database to async/await. (#8070) 2020-08-12 12:14:34 -04:00
background_updates.py Convert misc database code to async (#8087) 2020-08-14 07:24:26 -04:00
database.py Convert some of the general database methods to async (#8100) 2020-08-17 12:18:01 -04:00
keys.py Move storage classes into a main "data store". 2019-10-21 16:05:06 +01:00
persist_events.py Rename database classes to make some sense (#8033) 2020-08-05 21:38:57 +01:00
prepare_database.py Rename database classes to make some sense (#8033) 2020-08-05 21:38:57 +01:00
purge_events.py Convert storage layer to async/await. (#7963) 2020-07-28 16:09:53 -04:00
push_rule.py Move storage classes into a main "data store". 2019-10-21 16:05:06 +01:00
relations.py Move storage classes into a main "data store". 2019-10-21 16:05:06 +01:00
roommember.py Move storage classes into a main "data store". 2019-10-21 16:05:06 +01:00
state.py Convert some of the data store to async. (#7976) 2020-07-30 07:20:41 -04:00
types.py isort 5 compatibility (#7786) 2020-07-05 16:32:02 +01:00