summary refs log tree commit diff
path: root/synapse/storage
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2018-02-21 11:03:42 +0000
committerErik Johnston <erik@matrix.org>2018-02-21 11:03:42 +0000
commitc96d547f4dd3c10d3c4be66c40cb07232a16a987 (patch)
tree58b0c2ef5460edc8c0eddc5872ee60e9289f9ddb /synapse/storage
parentFix test (diff)
downloadsynapse-c96d547f4dd3c10d3c4be66c40cb07232a16a987.tar.xz
Actually use new param
Diffstat (limited to 'synapse/storage')
-rw-r--r--synapse/storage/event_push_actions.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/synapse/storage/event_push_actions.py b/synapse/storage/event_push_actions.py
index 6a122b05a8..214ace27c9 100644
--- a/synapse/storage/event_push_actions.py
+++ b/synapse/storage/event_push_actions.py
@@ -140,11 +140,13 @@ class EventPushActionsStore(SQLBaseStore):
                     (event.room_id, uid,)
                 )
 
+        # Now we delete the staging area for *all* events that were being
+        # persisted.
         txn.executemany(
             "DELETE FROM event_push_actions_staging WHERE event_id = ?",
             (
                 (event.event_id,)
-                for event, _ in events_and_contexts
+                for event, _ in all_events_and_contexts
             )
         )