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: add split support. #18

Merged
merged 1 commit into from
Mar 16, 2016
Merged

server: add split support. #18

merged 1 commit into from
Mar 16, 2016

Conversation

siddontang
Copy link
Contributor

c.Assert(right.GetStartKey(), BytesEquals, []byte("b"))
c.Assert(right.GetEndKey(), BytesEquals, []byte(""))

region, err = cluster.GetRegion([]byte("b"))
Copy link
Contributor

Choose a reason for hiding this comment

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

Why testing "b" twice? Maybe you want to test "c"?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

my fault.

@disksing
Copy link
Contributor

LGTM

@siddontang
Copy link
Contributor Author

PTAL @ngaut

newRegion.Peers[i] = &peer
}

newRegion.MaxPeerId = proto.Uint64(maxPeerID)
Copy link
Member

Choose a reason for hiding this comment

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

We don't need to send max peer id. The raft group can calculate it automatically.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Here simulates the raft group, so it should handle here.

@ngaut
Copy link
Member

ngaut commented Mar 16, 2016

LGTM

siddontang added a commit that referenced this pull request Mar 16, 2016
@siddontang siddontang merged commit c2c7228 into master Mar 16, 2016
@siddontang siddontang deleted the siddontang/ask-split branch March 16, 2016 07:53
HuSharp pushed a commit to HuSharp/pd that referenced this pull request Feb 27, 2023
Signed-off-by: zeminzhou <zhouzemin@pingcap.com>
Signed-off-by: disksing <i@disksing.com>
rleungx pushed a commit to rleungx/pd that referenced this pull request Jul 26, 2023
Signed-off-by: zeminzhou <zhouzemin@pingcap.com>
Signed-off-by: disksing <i@disksing.com>
rleungx pushed a commit to rleungx/pd that referenced this pull request Jul 26, 2023
Signed-off-by: zeminzhou <zhouzemin@pingcap.com>
Signed-off-by: disksing <i@disksing.com>
rleungx pushed a commit to rleungx/pd that referenced this pull request Jul 27, 2023
Signed-off-by: zeminzhou <zhouzemin@pingcap.com>
Signed-off-by: disksing <i@disksing.com>
rleungx pushed a commit to rleungx/pd that referenced this pull request Jul 28, 2023
Signed-off-by: zeminzhou <zhouzemin@pingcap.com>
Signed-off-by: disksing <i@disksing.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.

3 participants