summary refs log tree commit diff
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2016-09-16 11:34:01 +0100
committerErik Johnston <erik@matrix.org>2016-09-16 11:36:20 +0100
commita68807d4260778cff706fc37ef1badd4fd0d8bf2 (patch)
tree3e85a6708c9dc9210237e7d027a2802e011a5bbf
parentMake POST /publicRooms require auth (diff)
downloadsynapse-a68807d4260778cff706fc37ef1badd4fd0d8bf2.tar.xz
Comment
-rw-r--r--synapse/storage/event_federation.py2
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