Fix reply bytes calculation error
Fix #7275. Former-commit-id: a12210c87561fed5522c9a6e8db6d8606cabe3bf
This commit is contained in:
parent
36032618b2
commit
646cc81c96
@ -612,7 +612,7 @@ void trimReplyUnusedTailSpace(client *c) {
|
||||
/* take over the allocation's internal fragmentation (at least for
|
||||
* memory usage tracking) */
|
||||
tail->size = zmalloc_usable(tail) - sizeof(clientReplyBlock);
|
||||
c->reply_bytes += tail->size - old_size;
|
||||
c->reply_bytes = c->reply_bytes + tail->size - old_size;
|
||||
listNodeValue(ln) = tail;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user