diff --git a/roomserver/storage/shared/room_updater.go b/roomserver/storage/shared/room_updater.go index 86c02d07e..c5a5938b2 100644 --- a/roomserver/storage/shared/room_updater.go +++ b/roomserver/storage/shared/room_updater.go @@ -74,7 +74,7 @@ func (u *RoomUpdater) Rollback() error { if u.txn == nil { // SQLite mode probably return nil } - return u.txn.Commit() + return u.txn.Rollback() } // RoomVersion implements types.RoomRecentEventsUpdater