diff options
author | Erik Johnston <erik@matrix.org> | 2016-09-16 11:34:01 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2016-09-16 11:36:20 +0100 |
commit | a68807d4260778cff706fc37ef1badd4fd0d8bf2 (patch) | |
tree | 3e85a6708c9dc9210237e7d027a2802e011a5bbf | |
parent | Make POST /publicRooms require auth (diff) | |
download | synapse-a68807d4260778cff706fc37ef1badd4fd0d8bf2.tar.xz |
Comment
-rw-r--r-- | synapse/storage/event_federation.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/synapse/storage/event_federation.py b/synapse/storage/event_federation.py index 53289f556b..3d62451de9 100644 --- a/synapse/storage/event_federation.py +++ b/synapse/storage/event_federation.py @@ -393,6 +393,8 @@ class EventFederationStore(SQLBaseStore): def _delete_old_forward_extrem_cache(self): def _delete_old_forward_extrem_cache_txn(txn): + # Delete entries older than a month, while making sure we don't delete + # the only entries for a room. sql = (""" DELETE FROM stream_ordering_to_exterm WHERE |