Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Merge pull request #3473 from matrix-org/erikj/thread_cache
Browse files Browse the repository at this point in the history
Invalidate cache on correct thread
  • Loading branch information
erikjohnston committed Jul 4, 2018
2 parents 40252d1 + abb1834 commit 13f7adf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.d/3473.bugfix
@@ -0,0 +1 @@
Invalidate cache on correct thread to avoid race
3 changes: 2 additions & 1 deletion synapse/storage/events.py
Expand Up @@ -801,7 +801,8 @@ def _update_current_state_txn(self, txn, state_delta_by_room, max_stream_order):
]
)

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

Expand Down

0 comments on commit 13f7adf

Please sign in to comment.