summary refs log tree commit diff
path: root/synapse/storage
diff options
context:
space:
mode:
Diffstat (limited to 'synapse/storage')
-rw-r--r--synapse/storage/__init__.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/synapse/storage/__init__.py b/synapse/storage/__init__.py
index 81c3c94b2e..8ed80109a5 100644
--- a/synapse/storage/__init__.py
+++ b/synapse/storage/__init__.py
@@ -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"):