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 variable init error #2421

Conversation

wangshao1
Copy link
Collaborator

修复变量未设置初始值或初始值设置错误的bug。

@github-actions github-actions bot added the ☢️ Bug Something isn't working label Feb 27, 2024
src/pika_conf.cc Outdated
if (max_background_flushes_ >= 4) {
max_background_flushes_ = 4;
if (max_background_flushes_ >= 6) {
max_background_flushes_ = 6;
}

max_background_compactions_ = 2;
Copy link
Collaborator

Choose a reason for hiding this comment

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

默认值直接在声明的时候定义或者在初始化列表中定义,这里可以只做检查。

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,已修改

@AlexStocks AlexStocks merged commit 168d848 into OpenAtomFoundation:unstable Feb 27, 2024
11 of 13 checks passed
wangshao1 pushed a commit to wangshao1/pika that referenced this pull request Mar 4, 2024
* fix variable init error

* fix by review comments

---------

Co-authored-by: wangshaoyi <[email protected]>
bigdaronlee163 pushed a commit to bigdaronlee163/pika that referenced this pull request Jun 8, 2024
* fix variable init error

* fix by review comments

---------

Co-authored-by: wangshaoyi <[email protected]>
cheniujh pushed a commit to cheniujh/pika that referenced this pull request Sep 24, 2024
* fix variable init error

* fix by review comments

---------

Co-authored-by: wangshaoyi <[email protected]>
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