summary refs log tree commit diff
path: root/synapse/storage
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2015-05-05 16:12:28 +0100
committerErik Johnston <erik@matrix.org>2015-05-05 16:12:28 +0100
commit531d7955fd6265bc7e0a6424ec68cdc19ccef8da (patch)
treebe09ad173ad5a2ddcbfb87b00359d60d50d7a321 /synapse/storage
parentFix indentation (diff)
downloadsynapse-531d7955fd6265bc7e0a6424ec68cdc19ccef8da.tar.xz
Don't insert without deduplication. In this case we never actually use this table, so simply remove the insert entirely
Diffstat (limited to '')
-rw-r--r--synapse/storage/events.py22
1 files changed, 0 insertions, 22 deletions
diff --git a/synapse/storage/events.py b/synapse/storage/events.py
index 84e446a99c..34bd49cfe9 100644
--- a/synapse/storage/events.py
+++ b/synapse/storage/events.py
@@ -127,28 +127,6 @@ class EventsStore(SQLBaseStore):
                 ],
             )
 
-        if event.is_state() and is_new_state:
-            if not backfilled and not context.rejected:
-                self._simple_insert_txn(
-                    txn,
-                    table="state_forward_extremities",
-                    values={
-                        "event_id": event.event_id,
-                        "room_id": event.room_id,
-                        "type": event.type,
-                        "state_key": event.state_key,
-                    },
-                )
-
-                for prev_state_id, _ in event.prev_state:
-                    self._simple_delete_txn(
-                        txn,
-                        table="state_forward_extremities",
-                        keyvalues={
-                            "event_id": prev_state_id,
-                        }
-                    )
-
         outlier = event.internal_metadata.is_outlier()
 
         if not outlier: