0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-06-09 06:08:56 +02:00

Merge pull request #3473 from matrix-org/erikj/thread_cache

Invalidate cache on correct thread
This commit is contained in:
Erik Johnston 2018-07-04 10:11:38 +01:00 committed by GitHub
commit 13f7adf84b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

1
changelog.d/3473.bugfix Normal file
View file

@ -0,0 +1 @@
Invalidate cache on correct thread to avoid race

View file

@ -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,
)