mirror of
https://github.com/redis/redis.git
synced 2026-04-21 03:01:35 -04:00
Include sizeof(struct stream) in objectComputeSize (#9164)
Affects MEMORY USAGE
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user