Merge pull request #7299 from ShooterIT/reply-bytes

Fix reply bytes calculation error on 32bit platform
This commit is contained in:
Salvatore Sanfilippo 2020-05-21 15:47:15 +02:00 committed by GitHub
commit a1bda4a393

View File

@ -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;
}
}