Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
56020fd8
Commit
56020fd8
authored
Jun 29, 2021
by
guybe7
Committed by
Oran Agra
Jul 21, 2021
Browse files
Include sizeof(struct stream) in objectComputeSize (#9164)
Affects MEMORY USAGE (cherry picked from commit
4434cebb
)
parent
11235c0e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/object.c
View file @
56020fd8
...
...
@@ -881,7 +881,7 @@ size_t objectComputeSize(robj *o, size_t sample_size) {
}
}
else
if
(
o
->
type
==
OBJ_STREAM
)
{
stream
*
s
=
o
->
ptr
;
asize
=
sizeof
(
*
o
);
asize
=
sizeof
(
*
o
)
+
sizeof
(
*
s
)
;
asize
+=
streamRadixTreeMemoryUsage
(
s
->
rax
);
/* Now we have to add the listpacks. The last listpack is often non
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment