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
6c4cb167
Commit
6c4cb167
authored
Mar 22, 2018
by
antirez
Browse files
Add top comments in two addReply*() functions.
parent
b86c26b2
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/networking.c
View file @
6c4cb167
...
...
@@ -265,6 +265,7 @@ void _addReplyStringToList(client *c, const char *s, size_t len) {
* The following functions are the ones that commands implementations will call.
* -------------------------------------------------------------------------- */
/* Add the object 'obj' string representation to the client output buffer. */
void
addReply
(
client
*
c
,
robj
*
obj
)
{
if
(
prepareClientToWrite
(
c
)
!=
C_OK
)
return
;
...
...
@@ -284,6 +285,8 @@ void addReply(client *c, robj *obj) {
}
}
/* Add the SDS 's' string to the client output buffer, as a side effect
* the SDS string is freed. */
void
addReplySds
(
client
*
c
,
sds
s
)
{
if
(
prepareClientToWrite
(
c
)
!=
C_OK
)
{
/* The caller expects the sds to be free'd. */
...
...
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