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

Affects MEMORY USAGE
This commit is contained in:
guybe7
2021-06-29 13:34:18 +02:00
committed by GitHub
parent 4bc5a8324d
commit 4434cebbb3

View File

@@ -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