mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-12-09 23:47:42 -05:00
Stream public room changes down replication
This commit is contained in:
parent
4fb65a1091
commit
211786ecd6
4 changed files with 74 additions and 1 deletions
|
|
@ -61,6 +61,8 @@ class SlavedEventStore(BaseSlavedStore):
|
|||
"MembershipStreamChangeCache", events_max,
|
||||
)
|
||||
|
||||
self.stream_ordering_month_ago = 0
|
||||
|
||||
# Cached functions can't be accessed through a class instance so we need
|
||||
# to reach inside the __dict__ to extract them.
|
||||
get_rooms_for_user = RoomMemberStore.__dict__["get_rooms_for_user"]
|
||||
|
|
@ -168,6 +170,12 @@ class SlavedEventStore(BaseSlavedStore):
|
|||
get_auth_chain_ids = DataStore.get_auth_chain_ids.__func__
|
||||
_get_auth_chain_ids_txn = DataStore._get_auth_chain_ids_txn.__func__
|
||||
|
||||
get_room_max_stream_ordering = DataStore.get_room_max_stream_ordering.__func__
|
||||
|
||||
get_forward_extremeties_for_room = (
|
||||
DataStore.get_forward_extremeties_for_room.__func__
|
||||
)
|
||||
|
||||
def stream_positions(self):
|
||||
result = super(SlavedEventStore, self).stream_positions()
|
||||
result["events"] = self._stream_id_gen.get_current_token()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue