Skip to content

Count zmalloc size of aof buf into overhead#8970

Merged
oranagra merged 1 commit intoredis:unstablefrom
ShooterIT:aof-buf-size
May 20, 2021
Merged

Count zmalloc size of aof buf into overhead#8970
oranagra merged 1 commit intoredis:unstablefrom
ShooterIT:aof-buf-size

Conversation

@ShooterIT
Copy link
Member

In #5453 we use sds allocated size to get aof buf occupation size, but actually we need to use zmalloc size of it. I find @oranagra have fixed another one in #7864

@oranagra oranagra added the state:to-be-merged The PR should be merged soon, even if not yet ready, this is used so that it won't be forgotten label May 20, 2021
@oranagra oranagra merged commit 8627751 into redis:unstable May 20, 2021
@ShooterIT ShooterIT deleted the aof-buf-size branch May 20, 2021 15:00
JackieXie168 pushed a commit to JackieXie168/redis that referenced this pull request Sep 8, 2021
In theory we should have used zmalloc_usable_size, but it may be slower,
and now after redis#7875, there's no actual difference.
So this change isn't making a dramatic change.

Co-authored-by: Oran Agra <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

state:to-be-merged The PR should be merged soon, even if not yet ready, this is used so that it won't be forgotten

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants