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
4434cebb
Unverified
Commit
4434cebb
authored
Jun 29, 2021
by
guybe7
Committed by
GitHub
Jun 29, 2021
Browse files
Include sizeof(struct stream) in objectComputeSize (#9164)
Affects MEMORY USAGE
parent
4bc5a832
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/object.c
View file @
4434cebb
...
@@ -880,7 +880,7 @@ size_t objectComputeSize(robj *key, robj *o, size_t sample_size, int dbid) {
...
@@ -880,7 +880,7 @@ size_t objectComputeSize(robj *key, robj *o, size_t sample_size, int dbid) {
}
}
}
else
if
(
o
->
type
==
OBJ_STREAM
)
{
}
else
if
(
o
->
type
==
OBJ_STREAM
)
{
stream
*
s
=
o
->
ptr
;
stream
*
s
=
o
->
ptr
;
asize
=
sizeof
(
*
o
);
asize
=
sizeof
(
*
o
)
+
sizeof
(
*
s
)
;
asize
+=
streamRadixTreeMemoryUsage
(
s
->
rax
);
asize
+=
streamRadixTreeMemoryUsage
(
s
->
rax
);
/* Now we have to add the listpacks. The last listpack is often non
/* 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