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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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) { } 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