mirror of https://github.com/redis/redis.git
				
				
				
			Include sizeof(struct stream) in objectComputeSize (#9164)
Affects MEMORY USAGE
This commit is contained in:
		
							parent
							
								
									4bc5a8324d
								
							
						
					
					
						commit
						4434cebbb3
					
				|  | @ -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
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue