diff options
author | Erik Johnston <erikj@jki.re> | 2019-03-11 09:22:33 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-11 09:22:33 +0000 |
commit | ca7f7d84f4121b24fc6c133e82bb46f1e4a2f52d (patch) | |
tree | 60fcb924a8018fee7551df7f6157e9fff754dd9f /synapse/storage/events.py | |
parent | Merge pull request #4814 from matrix-org/erikj/soft_fail_impl (diff) | |
parent | Add comment to schema (diff) | |
download | synapse-ca7f7d84f4121b24fc6c133e82bb46f1e4a2f52d.tar.xz |
Merge pull request #4837 from matrix-org/erikj/optional_prev_state
Make `prev_state` field optional
Diffstat (limited to 'synapse/storage/events.py')
-rw-r--r-- | synapse/storage/events.py | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/synapse/storage/events.py b/synapse/storage/events.py index 990a5eaaae..428300ea0a 100644 --- a/synapse/storage/events.py +++ b/synapse/storage/events.py @@ -1407,21 +1407,6 @@ class EventsStore(StateGroupWorkerStore, EventFederationStore, EventsWorkerStore values=state_values, ) - self._simple_insert_many_txn( - txn, - table="event_edges", - values=[ - { - "event_id": event.event_id, - "prev_event_id": prev_id, - "room_id": event.room_id, - "is_state": True, - } - for event, _ in state_events_and_contexts - for prev_id, _ in event.prev_state - ], - ) - # Prefill the event cache self._add_to_cache(txn, events_and_contexts) |