From e8f26cdedfbc863b1f816488998eb3fc27653737 Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Thu, 3 Feb 2022 11:38:34 +0000 Subject: [PATCH] Fix rollback --- roomserver/storage/shared/room_updater.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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