mirror of
https://github.com/fluencelabs/redis
synced 2025-06-16 10:41:22 +00:00
sdsrange() does not need to return a value.
Actaully the string is modified in-place and a reallocation is never needed, so there is no need to return the new sds string pointer as return value of the function, that is now just "void".
This commit is contained in:
@ -1153,7 +1153,7 @@ void clusterWriteHandler(aeEventLoop *el, int fd, void *privdata, int mask) {
|
||||
handleLinkIOError(link);
|
||||
return;
|
||||
}
|
||||
link->sndbuf = sdsrange(link->sndbuf,nwritten,-1);
|
||||
sdsrange(link->sndbuf,nwritten,-1);
|
||||
if (sdslen(link->sndbuf) == 0)
|
||||
aeDeleteFileEvent(server.el, link->fd, AE_WRITABLE);
|
||||
}
|
||||
|
Reference in New Issue
Block a user