Commit 56020fd8 authored by guybe7's avatar guybe7 Committed by Oran Agra
Browse files

Include sizeof(struct stream) in objectComputeSize (#9164)

Affects MEMORY USAGE

(cherry picked from commit 4434cebb)
parent 11235c0e
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment