Include sizeof(struct stream) in objectComputeSize (#9164)
Affects MEMORY USAGE (cherry picked from commit 4434cebbb38ae2ef39b2d74ed3e6cd8d1a061d0c)
This commit is contained in:
parent
0be66e4ebe
commit
3b32512dc9
@ -881,7 +881,7 @@ size_t objectComputeSize(robj *o, size_t sample_size) {
|
|||||||
}
|
}
|
||||||
} 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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user