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
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}");
The text was updated successfully, but these errors were encountered:
The InMemoryStorageEngine reports an incorrect expected revision number. It is off by 1.
It shoud read:
SimpleEventStore/src/SimpleEventStore/SimpleEventStore/InMemory/InMemoryStorageEngine.cs
Line 29 in 60f1460
The text was updated successfully, but these errors were encountered: