mirror of
https://github.com/element-hq/synapse.git
synced 2026-08-22 12:20:07 +00:00
Rollback if we try and insert duplicate events
This commit is contained in:
@@ -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"):
|
||||
|
||||
Reference in New Issue
Block a user