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 JSON.DEL should return 0 if the key was not found #1918

Merged
merged 1 commit into from
Dec 4, 2023

Conversation

git-hulk
Copy link
Member

@git-hulk git-hulk commented Dec 4, 2023

No description provided.

@git-hulk git-hulk requested a review from PragmaTwice December 4, 2023 13:26
Copy link

sonarcloud bot commented Dec 4, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
2.4% 2.4% Duplication

Comment on lines +417 to +420
if (path == "$") {
*result = 1;
return del(ns_key);
}
Copy link
Member

Choose a reason for hiding this comment

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

I think it will lead to more i/o operations to move the code here rather than before read.

Copy link
Member

Choose a reason for hiding this comment

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

Ahhh I got why you move it here.

@git-hulk git-hulk merged commit 08194a8 into apache:unstable Dec 4, 2023
30 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.

2 participants