Skip to content
Snippets Groups Projects
Commit 0b78d8ad authored by Erik Johnston's avatar Erik Johnston
Browse files

Fix _delete_old_forward_extrem_cache query

parent 6f0c5e5d
No related branches found
No related tags found
No related merge requests found
...@@ -398,12 +398,11 @@ class EventFederationStore(SQLBaseStore): ...@@ -398,12 +398,11 @@ class EventFederationStore(SQLBaseStore):
sql = (""" sql = ("""
DELETE FROM stream_ordering_to_exterm DELETE FROM stream_ordering_to_exterm
WHERE WHERE
( room_id IN (
SELECT max(stream_ordering) AS stream_ordering SELECT room_id AS stream_ordering
FROM stream_ordering_to_exterm FROM stream_ordering_to_exterm
WHERE room_id = stream_ordering_to_exterm.room_id WHERE stream_ordering > ?
) > ? ) AND stream_ordering < ?
AND stream_ordering < ?
""") """)
txn.execute( txn.execute(
sql, sql,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment