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

pd-ctl: return full region information for /region api #1252

Merged
merged 7 commits into from
Sep 25, 2018

Conversation

liukun4515
Copy link
Contributor

@liukun4515 liukun4515 commented Sep 21, 2018

What problem does this PR solve?

  • return full region information not only the region meta.

close #1223

What is changed and how it works?

Check List

Tests

  • Unit test
  • Manual test

Side effects

no

Related changes

  • Need to update the documentation

@disksing
Copy link
Contributor

Any need to add/update test cases?

@disksing
Copy link
Contributor

The title should follow the rule mentioned in the development document https://github.com/pingcap/pd/blob/master/CONTRIBUTING.md#format-of-the-commit-message

@liukun4515 liukun4515 changed the title [pd-ctl/pd api] return full region information for /region api pd-ctl: return full region information for /region api Sep 25, 2018
@liukun4515
Copy link
Contributor Author

No test case should be updated.
Just test by manual test through the simulator.
@disksing

newTestRegionInfo(3, 1, []byte("b"), []byte("c")),
newTestRegionInfo(4, 2, []byte("c"), []byte("d")),
}
regions := make([]*regionInfo, 0)
Copy link
Contributor

Choose a reason for hiding this comment

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

make([]*regionInfo, 0, len(rs))

@disksing
Copy link
Contributor

PTAL @nolouch @rleungx

Copy link
Contributor

@nolouch nolouch left a comment

Choose a reason for hiding this comment

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

LGTM

@disksing disksing merged commit a87733a into tikv:master Sep 25, 2018
@nolouch nolouch added the needs-cherry-pick-release-2.0 The PR needs to cherry pick to release-2.0 branch. label Nov 13, 2018
@disksing disksing removed the needs-cherry-pick-release-2.0 The PR needs to cherry pick to release-2.0 branch. label Nov 13, 2018
@sre-bot sre-bot added the contribution Indicates that the PR was contributed by an external member. label Dec 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contribution Indicates that the PR was contributed by an external member.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Return full region detail for /region API
4 participants