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

support clustersync component #47

Merged
merged 1 commit into from
Aug 1, 2022
Merged

support clustersync component #47

merged 1 commit into from
Aug 1, 2022

Conversation

kqzh
Copy link
Contributor

@kqzh kqzh commented Aug 1, 2022

No description provided.

for _, cluster := range s.Clusters {
for _, instance := range cluster.Instances {
switch instance.ComponentType {
case ComponentTypeGraphd, ComponentTypeMetad, ComponentTypeStoraged, ComponentTypeMetaListener, ComponentTypeStorageListener, ComponentTypeDrainer:
Copy link
Contributor

Choose a reason for hiding this comment

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

How about add a var like var supportedComponentType map[string]struct{}?

Copy link
Contributor Author

@kqzh kqzh Aug 1, 2022

Choose a reason for hiding this comment

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

good idea, but there won't be many instances in one exporter, and this function only exec once, so I think it's optional

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, so I approved.

Copy link
Contributor

@veezhang veezhang left a comment

Choose a reason for hiding this comment

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

LGTM

@kqzh kqzh merged commit cf50130 into vesoft-inc:master Aug 1, 2022
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.

2 participants