diff options
author | Neil Alexander <neilalexander@users.noreply.github.com> | 2022-09-30 12:48:10 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-30 12:48:10 +0100 |
commit | 6348486a1365c7469a498101f5035a9b6bd16d22 (patch) | |
tree | d8a5ba572c5fc4fdec383802de5fac3a5e13c24d /syncapi/internal/history_visibility.go | |
parent | 8a82f100460dc5ca7bd39ae2345c251d6622c494 (diff) |
Transactional isolation for `/sync` (#2745)
This should transactional snapshot isolation for `/sync` etc requests.
For now we don't use repeatable read due to some odd test failures with
invites.
Diffstat (limited to 'syncapi/internal/history_visibility.go')
-rw-r--r-- | syncapi/internal/history_visibility.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/syncapi/internal/history_visibility.go b/syncapi/internal/history_visibility.go index e73c004e..bbfe19f4 100644 --- a/syncapi/internal/history_visibility.go +++ b/syncapi/internal/history_visibility.go @@ -100,7 +100,7 @@ func (ev eventVisibility) allowed() (allowed bool) { // Returns the filtered events and an error, if any. func ApplyHistoryVisibilityFilter( ctx context.Context, - syncDB storage.Database, + syncDB storage.DatabaseTransaction, rsAPI api.SyncRoomserverAPI, events []*gomatrixserverlib.HeaderedEvent, alwaysIncludeEventIDs map[string]struct{}, |