mirror of
https://github.com/fluencelabs/redis
synced 2025-03-19 17:10:50 +00:00
Add top comments in two addReply*() functions.
This commit is contained in:
parent
b86c26b2fd
commit
6c4cb1670a
@ -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. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user