Skip to content

Conversation

@poipoiPIO
Copy link
Contributor

Possible fix for #2552, suggested by @VIVALXH

Summary:

This PR extends the JSON.MSet method by temporarily storing modified JSON objects in memory to prevent multiple data rewrites performed on a single key and only then writing the resulting key objects to the batch.

Copy link
Member

@git-hulk git-hulk left a comment

Choose a reason for hiding this comment

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

@poipoiPIO Thanks for your contribution. This PR looks good to me except for adding some comments to explain the reason.

Co-authored-by: hulk <[email protected]>
Co-authored-by: Twice <[email protected]>
@git-hulk git-hulk changed the title fix: JSON.MSET multi-command query applied to one key writes only the last modification fix(json): JSON.MSET may update on the old json value Oct 5, 2024
git-hulk
git-hulk previously approved these changes Oct 5, 2024
@git-hulk git-hulk requested a review from PragmaTwice October 5, 2024 10:16
PragmaTwice
PragmaTwice previously approved these changes Oct 5, 2024
@poipoiPIO poipoiPIO dismissed stale reviews from PragmaTwice and git-hulk via 00bec20 October 5, 2024 10:53
@sonarqubecloud
Copy link

sonarqubecloud bot commented Oct 5, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
B Maintainability Rating on New Code (required ≥ A)

See analysis details on SonarCloud

Catch issues before they fail your Quality Gate with our IDE extension SonarLint

@PragmaTwice PragmaTwice merged commit 0d5f851 into apache:unstable Oct 5, 2024
@poipoiPIO
Copy link
Contributor Author

Thank y'all for the review!

git-hulk added a commit that referenced this pull request Oct 18, 2024
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