This repository was archived by the owner on Apr 26, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +8
-0
lines changed Expand file tree Collapse file tree 3 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 1+ Fix using MSC2716 batch sending in combination with event persistence workers. Contributed by @tulir at Beeper.
Original file line number Diff line number Diff line change 113113)
114114from synapse .storage .databases .main .presence import PresenceStore
115115from synapse .storage .databases .main .room import RoomWorkerStore
116+ from synapse .storage .databases .main .room_batch import RoomBatchStore
116117from synapse .storage .databases .main .search import SearchStore
117118from synapse .storage .databases .main .session import SessionStore
118119from synapse .storage .databases .main .stats import StatsStore
@@ -240,6 +241,7 @@ class GenericWorkerSlavedStore(
240241 SlavedEventStore ,
241242 SlavedKeyStore ,
242243 RoomWorkerStore ,
244+ RoomBatchStore ,
243245 DirectoryStore ,
244246 SlavedApplicationServiceStore ,
245247 SlavedRegistrationStore ,
Original file line number Diff line number Diff line change @@ -322,6 +322,11 @@ async def _fill_out_state(self) -> None:
322322 attributes by loading from the database.
323323 """
324324 if self .state_group is None :
325+ # No state group means the event is an outlier. Usually the state_ids dicts are also
326+ # pre-set to empty dicts, but they get reset when the context is serialized, so set
327+ # them to empty dicts again here.
328+ self ._current_state_ids = {}
329+ self ._prev_state_ids = {}
325330 return
326331
327332 current_state_ids = await self ._storage .state .get_state_ids_for_group (
You can’t perform that action at this time.
0 commit comments