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

raft: No longer scan raft log when becoming a lead. #100

Merged
merged 3 commits into from Aug 14, 2018

Conversation

Hoverbear
Copy link
Contributor

Ref: etcd-io/etcd#9887
Closes #96.

@Hoverbear Hoverbear added this to the 0.4.0 milestone Jul 31, 2018
@Hoverbear Hoverbear self-assigned this Jul 31, 2018
src/raft.rs Outdated
let ents = self.raft_log
.entries(begin, raft_log::NO_LIMIT)
.expect("unexpected error getting uncommitted entries");
// Conservatively set the pending_conf_index to the last index in the
Copy link
Contributor

Choose a reason for hiding this comment

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

we need to keep the comments here.

@Hoverbear Hoverbear force-pushed the really-avoid-scanning-raft-log branch from 299924b to 754392f Compare August 1, 2018 16:17
siddontang
siddontang previously approved these changes Aug 3, 2018
Copy link
Contributor

@siddontang siddontang left a comment

Choose a reason for hiding this comment

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

LGTM

PTAL @BusyJay

@Hoverbear
Copy link
Contributor Author

Ping @BusyJay

@Hoverbear
Copy link
Contributor Author

I resolved some conflicts.

@siddontang siddontang merged commit 19973a0 into master Aug 14, 2018
@siddontang siddontang deleted the really-avoid-scanning-raft-log branch August 14, 2018 17:39
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.

None yet

3 participants