diff options
author | Erik Johnston <erik@matrix.org> | 2016-01-29 16:41:51 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2016-01-29 16:41:51 +0000 |
commit | cc9c97e0dc0cf399d5d6013f12746063091b619e (patch) | |
tree | 06a9bbb7fdc3f05c62115101b915b69d876ab0b8 /synapse/storage | |
parent | If stream pos is greater then earliest known key and entity hasn't changed, t... (diff) | |
download | synapse-cc9c97e0dc0cf399d5d6013f12746063091b619e.tar.xz |
Invalidate _account_data_stream_cache correctly
Diffstat (limited to 'synapse/storage')
-rw-r--r-- | synapse/storage/account_data.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/synapse/storage/account_data.py b/synapse/storage/account_data.py index 625d062eb1..b8387fc500 100644 --- a/synapse/storage/account_data.py +++ b/synapse/storage/account_data.py @@ -157,6 +157,10 @@ class AccountDataStore(SQLBaseStore): "content": content_json, } ) + txn.call_after( + self._account_data_stream_cache.entity_has_changed, + user_id, next_id, + ) self._update_max_stream_id(txn, next_id) with (yield self._account_data_id_gen.get_next(self)) as next_id: |