mirror of
https://github.com/element-hq/synapse.git
synced 2024-12-15 17:51:10 +00:00
Rollback if we try and insert duplicate events
This commit is contained in:
parent
d81e7dc00e
commit
c0577ea87a
1 changed files with 1 additions and 0 deletions
|
@ -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"):
|
||||
|
|
Loading…
Reference in a new issue