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

fix: fix conf load error message #2672

Merged
merged 1 commit into from
May 23, 2024

Conversation

Mixficsol
Copy link
Collaborator

No description provided.

@github-actions github-actions bot added the ☢️ Bug Something isn't working label May 22, 2024
src/pika_conf.cc Outdated
@@ -126,6 +126,9 @@ int PikaConf::Load() {
GetConfStr("loglevel", &log_level_);
GetConfStr("db-path", &db_path_);
GetConfInt("db-instance-num", &db_instance_num_);
if (db_instance_num_ == 0) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

if (db_instance_num_ <= 0) {
LOG(FATAL) << "db-instance-num load error";
}

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done

@Mixficsol Mixficsol marked this pull request as ready for review May 23, 2024 02:07
@baerwang baerwang requested a review from AlexStocks May 23, 2024 03:03
@AlexStocks AlexStocks merged commit 53a9cef into OpenAtomFoundation:unstable May 23, 2024
12 checks passed
@Mixficsol Mixficsol deleted the fix_conf branch May 23, 2024 05:57
chenbt-hz pushed a commit to chenbt-hz/pika that referenced this pull request Jun 3, 2024
cheniujh pushed a commit to cheniujh/pika that referenced this pull request Sep 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
☢️ Bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants