-
-
Notifications
You must be signed in to change notification settings - Fork 159
Closed
Labels
Description
This bug affects APIs that use a master database to write changes to while using a set of read-only replicates to serve GET requests.
The query to determine initial state is sent to the read-only database on POST Many-to-many and DELETE To-many relationship requests.
Affected code:
IReadOnlyCollection<TResource> leftResources = await _repositoryAccessor.GetAsync<TResource>(queryLayer, cancellationToken); |
Instead it should call:
_repositoryAccessor.GetForUpdateAsync()