mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-24 06:29:27 -05:00
Rollback if we try and insert duplicate events
This commit is contained in:
parent
d81e7dc00e
commit
c0577ea87a
@ -179,6 +179,7 @@ class DataStore(RoomMemberStore, RoomStore,
|
|||||||
"Failed to persist, probably duplicate: %s",
|
"Failed to persist, probably duplicate: %s",
|
||||||
event.event_id
|
event.event_id
|
||||||
)
|
)
|
||||||
|
txn.rollback()
|
||||||
return
|
return
|
||||||
|
|
||||||
if not backfilled and hasattr(event, "state_key"):
|
if not backfilled and hasattr(event, "state_key"):
|
||||||
|
Loading…
Reference in New Issue
Block a user