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(conf): use DSN_DEFINE_string to load string type of configs #1371

Merged
merged 5 commits into from
Mar 1, 2023

Conversation

acelyc111
Copy link
Member

@acelyc111 acelyc111 commented Feb 27, 2023

#1323

This patch refactors the code to use DSN_DEFINE_string instead of dsn_config_get_value_string to load string type of configurations, and doesn't introduce any functional changes.

  • all default value and most of description are kept as before
  • move the defination of flags closer to the places where they're used

_zoo_logfile = dsn_config_get_value_string("zookeeper", "logfile", "", "zookeeper logfile");

FILE *fp = fopen(_zoo_logfile.c_str(), "a");
FILE *fp = fopen(FLAGS_logfile, "a");
Copy link
Contributor

Choose a reason for hiding this comment

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

what's the meaning of "a"?

Copy link
Member Author

Choose a reason for hiding this comment

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

@acelyc111 acelyc111 requested review from empiredan and levy5307 March 1, 2023 02:24
@levy5307 levy5307 merged commit 98e3598 into apache:master Mar 1, 2023
@empiredan empiredan mentioned this pull request Aug 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants