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

client: Add GetAllStores function to PdClient interface #1228

Merged
merged 1 commit into from
Aug 31, 2018

Conversation

MyonKeminta
Copy link
Contributor

Signed-off-by: MyonKeminta MyonKeminta@users.noreply.github.com

What problem does this PR solve?

Now we want invoke RPC calls to each TiKV in TiDB, so TiDB should know all TiKVs before doing this. PD already has this functionality but it didn't show up in the PDClient interface. Add it so that TiDB can call it conveniently.

What is changed and how it works?

This PR added GetAllStores function to PdClient interface so that TiDB can use it conveniently to get all TiKVs.

Check List

Tests

  • Unit test

Related changes

  • Need to cherry-pick to the release branch (Maybe)

Signed-off-by: MyonKeminta <MyonKeminta@users.noreply.github.com>
Copy link
Member

@rleungx rleungx 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 b38265e into tikv:master Aug 31, 2018
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