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

server: minor changes for add/remove peer. #106

Merged
merged 1 commit into from
May 20, 2016

Conversation

disksing
Copy link
Contributor

}

// If leader is nil, we will return an error, or else we can remove none leader peer.
func (c *raftCluster) handleRemovePeerReq(region *metapb.Region, leader *metapb.Peer) (*metapb.Peer, error) {
func (c *raftCluster) handleRemovePeerReq(region *metapb.Region, leaderID uint64) (*metapb.Peer, error) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we check the validity of leaderID?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@qiuyesuifeng I think it's acceptable not to check it. And if we want to, maybe better to check it outside of this func.

@ngaut
Copy link
Member

ngaut commented May 20, 2016

LGTM

1 similar comment
@siddontang
Copy link
Contributor

LGTM

@qiuyesuifeng qiuyesuifeng merged commit 6fae070 into qiuyesuifeng/refactor-pd May 20, 2016
@qiuyesuifeng qiuyesuifeng deleted the disksing/refactor-pd-patch branch May 20, 2016 13:55
JmPotato pushed a commit to JmPotato/pd that referenced this pull request Sep 25, 2023
Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>
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.

4 participants