Unverified Commit 9f932bcc authored by Salvatore Sanfilippo's avatar Salvatore Sanfilippo Committed by GitHub
Browse files

Merge pull request #7299 from ShooterIT/reply-bytes

Fix reply bytes calculation error on 32bit platform
parents 1afb002d 9018ddc3
......@@ -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;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment