Skip to content

Commit 9f932bc

Browse files
authored
Merge pull request redis#7299 from ShooterIT/reply-bytes
Fix reply bytes calculation error on 32bit platform
2 parents 1afb002 + 9018ddc commit 9f932bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/networking.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ void trimReplyUnusedTailSpace(client *c) {
488488
/* take over the allocation's internal fragmentation (at least for
489489
* memory usage tracking) */
490490
tail->size = zmalloc_usable(tail) - sizeof(clientReplyBlock);
491-
c->reply_bytes += tail->size - old_size;
491+
c->reply_bytes = c->reply_bytes + tail->size - old_size;
492492
listNodeValue(ln) = tail;
493493
}
494494
}

0 commit comments

Comments
 (0)