diff options
author | Erik Johnston <erik@matrix.org> | 2015-05-05 18:21:19 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2015-05-05 18:21:19 +0100 |
commit | 0c4ac271ca2c9e46e20ba9546f0e6f1983d8e923 (patch) | |
tree | aa5af8e6167cffa28a30d5eb329db1203678103c /synapse/storage/roommember.py | |
parent | Don't insert without deduplication. In this case we never actually use this t... (diff) | |
parent | And use buffer(...) there as well (diff) | |
download | synapse-0c4ac271ca2c9e46e20ba9546f0e6f1983d8e923.tar.xz |
Merge branch 'erikj/executemany' of github.com:matrix-org/synapse into erikj/SYN-371
Diffstat (limited to 'synapse/storage/roommember.py')
-rw-r--r-- | synapse/storage/roommember.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/storage/roommember.py b/synapse/storage/roommember.py index 09fb77a194..839c74f63a 100644 --- a/synapse/storage/roommember.py +++ b/synapse/storage/roommember.py @@ -64,8 +64,8 @@ class RoomMemberStore(SQLBaseStore): } ) - self.get_rooms_for_user.invalidate(target_user_id) - self.get_joined_hosts_for_room.invalidate(event.room_id) + txn.call_after(self.get_rooms_for_user.invalidate, target_user_id) + txn.call_after(self.get_joined_hosts_for_room.invalidate, event.room_id) def get_room_member(self, user_id, room_id): """Retrieve the current state of a room member. |