Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
9f932bcc
Unverified
Commit
9f932bcc
authored
May 21, 2020
by
Salvatore Sanfilippo
Committed by
GitHub
May 21, 2020
Browse files
Merge pull request #7299 from ShooterIT/reply-bytes
Fix reply bytes calculation error on 32bit platform
parents
1afb002d
9018ddc3
Changes
1
Show whitespace changes
Inline
Side-by-side
src/networking.c
View file @
9f932bcc
...
@@ -488,7 +488,7 @@ void trimReplyUnusedTailSpace(client *c) {
...
@@ -488,7 +488,7 @@ void trimReplyUnusedTailSpace(client *c) {
/* take over the allocation's internal fragmentation (at least for
/* take over the allocation's internal fragmentation (at least for
* memory usage tracking) */
* memory usage tracking) */
tail
->
size
=
zmalloc_usable
(
tail
)
-
sizeof
(
clientReplyBlock
);
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
;
listNodeValue
(
ln
)
=
tail
;
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment