Skip to content
Snippets Groups Projects
Commit c0577ea8 authored by Erik Johnston's avatar Erik Johnston
Browse files

Rollback if we try and insert duplicate events

parent d81e7dc0
No related branches found
No related tags found
No related merge requests found
......@@ -179,6 +179,7 @@ class DataStore(RoomMemberStore, RoomStore,
"Failed to persist, probably duplicate: %s",
event.event_id
)
txn.rollback()
return
if not backfilled and hasattr(event, "state_key"):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment