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

Commit index implemented #9

Merged
merged 7 commits into from
Dec 13, 2013
Merged

Commit index implemented #9

merged 7 commits into from
Dec 13, 2013

Conversation

qrilka
Copy link
Contributor

@qrilka qrilka commented Dec 1, 2013

This should resolve #7

else currentState

-- | Handles `AppendEntriesResponse'.
handleAppendEntriesResponse :: (Functor m, Monad m)
handleAppendEntriesResponse :: (Functor m, Monad m, MonadLog m a)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm most likely missing something obvious, but where is this constraint used?

@NicolasT
Copy link
Owner

Thanks for going through this. While going through the changes I had one minor question, if you could tell me what I'm missing, this otherwise looks good to me.

@@ -54,7 +54,9 @@ handle config state event = case state of

-- | Initial state of all nodes.
initialState :: SomeState
initialState = wrap FollowerState {_fCurrentTerm = term0, _fVotedFor = Nothing}
initialState = wrap FollowerState {_fCurrentTerm = term0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this might be missed from my change, but I think there could be a space before _fCurrentTerm, similarly in later change the } is aligned with the commas...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@qrilka
Copy link
Contributor Author

qrilka commented Dec 12, 2013

@NicolasT I have made a fix commit if you did not get a notification - please review

NicolasT added a commit that referenced this pull request Dec 13, 2013
Implement commit-index propagation
@NicolasT NicolasT merged commit 4fa2cb3 into NicolasT:master Dec 13, 2013
@NicolasT
Copy link
Owner

Thanks!

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.

3 participants