Skip to content

Code Review Bench PR #14288 - Fix MEMORY USAGE command#5

Open
tomerqodo wants to merge 2 commits intobase_pr_14288_20260125_8607from
corrupted_pr_14288_20260125_8607
Open

Code Review Bench PR #14288 - Fix MEMORY USAGE command#5
tomerqodo wants to merge 2 commits intobase_pr_14288_20260125_8607from
corrupted_pr_14288_20260125_8607

Conversation

@tomerqodo
Copy link

Code Review Bench PR redis#14288

Original PR Title: Fix MEMORY USAGE command
Original PR Description: After the key-value unification (kvobj), the MEMORY USAGE command may no longer account for the embedded key length stored within the kvobj. To fix this, replace sizeof(*o) with zmalloc_size((void *)o) to ensure the full allocated size is measured.

In this context, the function objectComputeSize() was renamed and modified to kvobjComputeSize(). From computing only the value size to compute the key and its value.
Original PR URL: redis#14288

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