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

refactor as uri resolver is removed #242

Merged
merged 5 commits into from
Dec 25, 2018

Conversation

shengofsun
Copy link
Contributor

No description provided.

"no meta server specified in config [%s].arguments",
section.c_str());

dsn::replication::replica_helper::load_meta_servers(meta_servers, "cluster", cluster_name);
Copy link
Contributor

Choose a reason for hiding this comment

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

“cluster” 段名改为 "pegasus.clusters" 吧。
首先,这是rdsn之上的pegasus层的语义,所以加pegasus前缀比较合适,类似于pegasus.server。
然后,这是专门用于配置clusters的meta地址列表的,所以后缀用clusters比较合适。

另外,这个字符串因为要在很多地方使用,所以建议用宏或者常量,可以放在base/pegasus_const.h里面。

@@ -34,7 +35,8 @@ info_collector::info_collector()
_meta_servers.group_address()->add(ms);
}

_cluster_name = dsn_config_get_value_string("pegasus.collector", "cluster", "", "cluster name");
_cluster_name = dsn_config_get_value_string(
"pegasus.collector", PEGASUS_CLUSTER_SECTION_NAME.c_str(), "", "cluster name");
Copy link
Contributor

Choose a reason for hiding this comment

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

这里要用"cluster"

neverchanje
neverchanje previously approved these changes Dec 25, 2018
@qinzuoyan qinzuoyan merged commit 4b33f36 into apache:master Dec 25, 2018
qinzuoyan pushed a commit that referenced this pull request Feb 27, 2019
neverchanje pushed a commit to neverchanje/pegasus that referenced this pull request Jul 13, 2019
Former-commit-id: e3105ec630c9cef5b70f82a9f8755c754f2acd95 [formerly 4b33f36]
Former-commit-id: 058bcbd34628d60458ed750abaca57290d37c794
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.

None yet

3 participants