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

feat(split): add query split status interface #726

Merged
merged 3 commits into from
Feb 2, 2021

Conversation

hycdong
Copy link
Contributor

@hycdong hycdong commented Jan 13, 2021

This pull request add interface to query app split status.

@hycdong hycdong marked this pull request as ready for review January 18, 2021 08:39
@hycdong hycdong marked this pull request as draft January 18, 2021 10:41
@hycdong hycdong marked this pull request as ready for review February 1, 2021 05:16
src/meta/meta_split_service.cpp Outdated Show resolved Hide resolved
src/meta/meta_service.cpp Outdated Show resolved Hide resolved
src/meta/meta_split_service.cpp Outdated Show resolved Hide resolved
Comment on lines +305 to +307
response.err = app == nullptr ? ERR_APP_NOT_EXIST : ERR_APP_DROPPED;
response.__set_hint_msg(fmt::format(
"app({}) {}", app_name, response.err == ERR_APP_NOT_EXIST ? "not existed" : "dropped"));
Copy link
Member

@acelyc111 acelyc111 Feb 2, 2021

Choose a reason for hiding this comment

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

Seems there are many code like app == nullptr ? ERR_APP_NOT_EXIST : ERR_APP_DROPPED and response.err == ERR_APP_NOT_EXIST ? "not existed" : "dropped", use macros to simplify these code? You can do that in another PR.

@acelyc111 acelyc111 merged commit eabef24 into XiaoMi:master Feb 2, 2021
@hycdong hycdong deleted the query_split_status branch February 2, 2021 02:50
zhangyifan27 pushed a commit to zhangyifan27/rdsn that referenced this pull request Feb 3, 2021
zhangyifan27 pushed a commit to zhangyifan27/rdsn that referenced this pull request Feb 4, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants