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

Affects MEMORY USAGE

(cherry picked from commit 4434cebbb38ae2ef39b2d74ed3e6cd8d1a061d0c)
This commit is contained in:
guybe7 2021-06-29 13:34:18 +02:00 committed by Oran Agra
parent 0be66e4ebe
commit 3b32512dc9

View File

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