Rollback if we try and insert duplicate events

This commit is contained in:
Erik Johnston 2014-09-08 18:34:18 +01:00
parent d81e7dc00e
commit c0577ea87a

View File

@ -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"):