diff options
author | ShooterIT <wangyuancode@163.com> | 2020-05-21 21:00:21 +0800 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2020-05-22 12:37:49 +0200 |
commit | d0c9e445451c0b7fc9b73507cf0f9c4a9ebc28e8 (patch) | |
tree | 541526caace2b895abe45f03c8ca41bcefabd5f3 | |
parent | 1cde6a0603dce5647c035a3ff1faa2426b2f1f49 (diff) | |
download | redis-d0c9e445451c0b7fc9b73507cf0f9c4a9ebc28e8.tar.gz |
Fix reply bytes calculation error
Fix #7275.
-rw-r--r-- | src/networking.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/networking.c b/src/networking.c index 0a04c0489..e6c48ac77 100644 --- a/src/networking.c +++ b/src/networking.c @@ -488,7 +488,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; } } |