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