mirror of
https://github.com/element-hq/synapse.git
synced 2024-12-14 11:57:44 +00:00
Merge pull request #3473 from matrix-org/erikj/thread_cache
Invalidate cache on correct thread
This commit is contained in:
commit
13f7adf84b
2 changed files with 3 additions and 1 deletions
1
changelog.d/3473.bugfix
Normal file
1
changelog.d/3473.bugfix
Normal file
|
@ -0,0 +1 @@
|
|||
Invalidate cache on correct thread to avoid race
|
|
@ -801,7 +801,8 @@ class EventsStore(EventsWorkerStore):
|
|||
]
|
||||
)
|
||||
|
||||
self._curr_state_delta_stream_cache.entity_has_changed(
|
||||
txn.call_after(
|
||||
self._curr_state_delta_stream_cache.entity_has_changed,
|
||||
room_id, max_stream_order,
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in a new issue