Skip to content

[CORRUPTED] Synthetic Benchmark PR #14288 - Fix MEMORY USAGE command#82

Open
ofir-frd wants to merge 2 commits intobase_pr_14288_20260121_6308from
corrupted_pr_14288_20260121_6308
Open

[CORRUPTED] Synthetic Benchmark PR #14288 - Fix MEMORY USAGE command#82
ofir-frd wants to merge 2 commits intobase_pr_14288_20260121_6308from
corrupted_pr_14288_20260121_6308

Conversation

@ofir-frd
Copy link

Benchmark PR redis#14288

Type: Corrupted (contains bugs)

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

Compliance Violation

  • Rule: Use zmalloc/zfree Wrappers Instead of Direct malloc/free
  • Language: C
  • File: src/object.c

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