You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ConcurrencyException reports an incorrect expected revision number. #61
The InMemoryStorageEngine reports an incorrect expected revision number. It is off by 1.
if (firstEvent.EventNumber - 1 != streams[streamId].Count)
{
throw new ConcurrencyException($"Concurrency conflict when appending to stream {streamId}. Expected revision {firstEvent.EventNumber} : Actual revision {streams[streamId].Count}");
}
It shoud read:
if (firstEvent.EventNumber != streams[streamId].Count + 1)
{
throw new ConcurrencyException($"Concurrency conflict when appending to stream {streamId}. Expected revision {firstEvent.EventNumber} : Actual revision {streams[streamId].Count + 1}");
}
thrownewConcurrencyException($"Concurrency conflict when appending to stream {streamId}. Expected revision {firstEvent.EventNumber} : Actual revision {streams[streamId].Count}");
Activity