diff options
author | Mark Haines <mjark@negativecurvature.net> | 2015-05-05 18:53:15 +0100 |
---|---|---|
committer | Mark Haines <mjark@negativecurvature.net> | 2015-05-05 18:53:15 +0100 |
commit | f4664a6cbd6a0c271a7e02fa04c164126db12831 (patch) | |
tree | aa5af8e6167cffa28a30d5eb329db1203678103c | |
parent | Merge pull request #137 from matrix-org/erikj/executemany (diff) | |
parent | Merge branch 'erikj/executemany' of github.com:matrix-org/synapse into erikj/... (diff) | |
download | synapse-f4664a6cbd6a0c271a7e02fa04c164126db12831.tar.xz |
Merge pull request #138 from matrix-org/erikj/SYN-371
SYN-371 - Failed to persist event
-rw-r--r-- | synapse/storage/events.py | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/synapse/storage/events.py b/synapse/storage/events.py index ba180da56d..38395c66ab 100644 --- a/synapse/storage/events.py +++ b/synapse/storage/events.py @@ -132,28 +132,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: |