Skip to content
This repository has been archived by the owner on Dec 1, 2022. It is now read-only.

Improve clusterIdsToHosts. #468

Merged
merged 5 commits into from Mar 26, 2021

Conversation

@CPWstatic CPWstatic added ready-for-testing PR: ready for the CI test hold on labels Mar 25, 2021
}
}
{
auto metaStatus = getPartHosts(spaceId, partId);
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe just getPartHosts and call getLeader(const meta::PartHosts& partHosts)? Most of the logic is same as that method.

Copy link
Contributor

@critical27 critical27 left a comment

Choose a reason for hiding this comment

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

LGTM now, good job

@CLAassistant
Copy link

CLAassistant commented Mar 26, 2021

CLA assistant check
All committers have signed the CLA.

Copy link
Contributor

@dutor dutor left a comment

Choose a reason for hiding this comment

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

Bravo

Copy link
Contributor

@bright-starry-sky bright-starry-sky left a comment

Choose a reason for hiding this comment

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

👍

@CPWstatic CPWstatic merged commit 187253f into vesoft-inc:master Mar 26, 2021
jude-zhu pushed a commit that referenced this pull request Apr 1, 2021
* Improve clusterIdsToHosts.

* Fix call getLeader.

* Using new getLeader.

Co-authored-by: dutor <440396+dutor@users.noreply.github.com>
(cherry picked from commit 187253f)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
ready-for-testing PR: ready for the CI test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants