Skip to content

Conversation

@xysun
Copy link
Owner

@xysun xysun commented Mar 29, 2020

No description provided.

myLastLogIdx := len(rf.logs) - 1
myLastLog := rf.logs[myLastLogIdx]

rf.currentTerm = args.Term // to prevent lockstep (i.e. when I am a few terms behind)
Copy link
Owner Author

Choose a reason for hiding this comment

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

important


// TODO: send entries maybe
// send entries
if rf.commitIndex < len(rf.logs)-1 {
Copy link
Owner Author

Choose a reason for hiding this comment

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

important: to make sure previous entries are also committed

@xysun xysun added the done label Mar 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants