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 the pidfile and backup_dir will be rewritten even though they weren't modified #2186

Merged
merged 3 commits into from
Mar 21, 2024

Conversation

git-hulk
Copy link
Member

@git-hulk git-hulk commented Mar 20, 2024

Currently, the config's finish method will set a default value for the pidfile
and backup_dir. And it will cause them to be rewritten into the config file.

Before applying this patch, it will generate two new lines
at the end of the file while rewriting:

pidfile /tmp/kvrocks/kvrocks.pid
backup_dir /tmp/kvrocks/backup

…'t modified

Currently, the config's finish method will set a default value for
pidfile and backup_dir, and this will cause them being rewrote into
the config file.
caipengbo
caipengbo previously approved these changes Mar 20, 2024
@git-hulk git-hulk marked this pull request as draft March 20, 2024 14:37
@git-hulk git-hulk marked this pull request as ready for review March 20, 2024 23:27
Copy link

sonarcloud bot commented Mar 21, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
3 Security Hotspots
6.1% Duplication on New Code (required ≤ 5%)

See analysis details on SonarCloud

@git-hulk git-hulk merged commit a9259a7 into apache:unstable Mar 21, 2024
30 of 31 checks passed
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.

3 participants