Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Merge pull request #138 from matrix-org/erikj/SYN-371
Browse files Browse the repository at this point in the history
SYN-371 - Failed to persist event
  • Loading branch information
NegativeMjark committed May 5, 2015
2 parents ecb26be + 0c4ac27 commit f4664a6
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions synapse/storage/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,28 +132,6 @@ def _persist_event_txn(self, txn, event, context, backfilled,
}
)

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:
Expand Down

0 comments on commit f4664a6

Please sign in to comment.