This repository was archived by the owner on Apr 26, 2024. It is now read-only.
File tree 3 files changed +8
-0
lines changed
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 113
113
)
114
114
from synapse .storage .databases .main .presence import PresenceStore
115
115
from synapse .storage .databases .main .room import RoomWorkerStore
116
+ from synapse .storage .databases .main .room_batch import RoomBatchStore
116
117
from synapse .storage .databases .main .search import SearchStore
117
118
from synapse .storage .databases .main .session import SessionStore
118
119
from synapse .storage .databases .main .stats import StatsStore
@@ -240,6 +241,7 @@ class GenericWorkerSlavedStore(
240
241
SlavedEventStore ,
241
242
SlavedKeyStore ,
242
243
RoomWorkerStore ,
244
+ RoomBatchStore ,
243
245
DirectoryStore ,
244
246
SlavedApplicationServiceStore ,
245
247
SlavedRegistrationStore ,
Original file line number Diff line number Diff line change @@ -322,6 +322,11 @@ async def _fill_out_state(self) -> None:
322
322
attributes by loading from the database.
323
323
"""
324
324
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 = {}
325
330
return
326
331
327
332
current_state_ids = await self ._storage .state .get_state_ids_for_group (
You can’t perform that action at this time.
0 commit comments