Skip to content

Comments

[CLEAN] Synthetic Benchmark PR #14288 - Fix MEMORY USAGE command#97

Open
tomerqodo wants to merge 1 commit intobase_pr_14288_20260121_5302from
clean_pr_14288_20260121_5302
Open

[CLEAN] Synthetic Benchmark PR #14288 - Fix MEMORY USAGE command#97
tomerqodo wants to merge 1 commit intobase_pr_14288_20260121_5302from
clean_pr_14288_20260121_5302

Conversation

@tomerqodo
Copy link

Benchmark PR redis#14288

Type: Clean (correct implementation)

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