summary refs log tree commit diff
path: root/synapse/storage/event_federation.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2016-09-14 17:01:02 +0100
committerErik Johnston <erik@matrix.org>2016-09-14 17:29:19 +0100
commitbaffe96d95f31f0217be5fbc8c03c5f6b7485d53 (patch)
tree2d7995885459c5024d389dd79f9d27cfe0d9f29f /synapse/storage/event_federation.py
parentAdd a DB index to figure out past state at a stream ordering in a room (diff)
downloadsynapse-baffe96d95f31f0217be5fbc8c03c5f6b7485d53.tar.xz
Add a room visibility stream
Diffstat (limited to 'synapse/storage/event_federation.py')
-rw-r--r--synapse/storage/event_federation.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/event_federation.py b/synapse/storage/event_federation.py
index 9ec67ad0c4..ec6dbe5492 100644
--- a/synapse/storage/event_federation.py
+++ b/synapse/storage/event_federation.py
@@ -366,7 +366,7 @@ class EventFederationStore(SQLBaseStore):
         """)
 
         def get_forward_extremeties_for_room_txn(txn):
-            txn.execute(sql, (room_id, stream_ordering,))
+            txn.execute(sql, (stream_ordering, room_id))
             rows = txn.fetchall()
             return [event_id for event_id, in rows]