Unverified Commit 4434cebb authored by guybe7's avatar guybe7 Committed by GitHub
Browse files

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

Affects MEMORY USAGE
parent 4bc5a832
......@@ -880,7 +880,7 @@ size_t objectComputeSize(robj *key, robj *o, size_t sample_size, int dbid) {
}
} 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