Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix stream revision # after snapshot #29

Merged
merged 2 commits into from
Jan 30, 2015
Merged

Conversation

ssajous
Copy link
Contributor

@ssajous ssajous commented Jan 30, 2015

In getFromSnapshot if there are no events in the stream after the snapshot, the
returned stream object had a lastRevision of -1 which causes the next event to
be created with a revision number of 0, breaking the event stream. This fix
set's the last revision equal to the snapshot's revision number.

In getFromSnapshot if there are no events in the stream after the snapshot, the
returned stream object had a lastRevision of -1 which causes the next event to
be created with a revision number of 0, breaking the event stream. This fix
set's the last revision equal to the snapshot's revision number.
@ssajous
Copy link
Contributor Author

ssajous commented Jan 30, 2015

Updated the pull request with the new test.

@adrai
Copy link
Contributor

adrai commented Jan 30, 2015

thanks

adrai added a commit that referenced this pull request Jan 30, 2015
Fix stream revision # after snapshot
@adrai adrai merged commit 60b1f5a into thenativeweb:master Jan 30, 2015
adrai added a commit that referenced this pull request Jan 30, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants