summary refs log tree commit diff
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2015-09-15 16:54:43 +0100
committerErik Johnston <erik@matrix.org>2015-09-15 16:54:48 +0100
commit8148c48f11845af1747dc9447e47f9cce70c615f (patch)
tree9dac0b4a000ed2f1e6f8ddf3b1be577ab4043242
parentWhen updating a stored event from outlier to non-outlier, remember to update ... (diff)
downloadsynapse-8148c48f11845af1747dc9447e47f9cce70c615f.tar.xz
"Comments"
-rw-r--r--synapse/storage/event_federation.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/synapse/storage/event_federation.py b/synapse/storage/event_federation.py
index 27284cd08c..7cb314dee8 100644
--- a/synapse/storage/event_federation.py
+++ b/synapse/storage/event_federation.py
@@ -306,6 +306,12 @@ class EventFederationStore(SQLBaseStore):
         self._update_extremeties(txn, events)
 
     def _update_extremeties(self, txn, events):
+        """Updates the event_*_extremities tables based on the new/updated
+        events being persisted.
+
+        This is called for new events *and* for events that were outliers, but
+        are are now being persisted as non-outliers.
+        """
         events_by_room = {}
         for ev in events:
             events_by_room.setdefault(ev.room_id, []).append(ev)