Top comment for prepareClientToWrite() clarified.

We don't write the output buffer to the client socket for slaves only if
the slave is not online.
This commit is contained in:
antirez 2013-05-24 18:41:43 +02:00
parent 5d0f408d42
commit c853239a5e

View File

@ -117,8 +117,8 @@ redisClient *createClient(int fd) {
* loop so that when the socket is writable new data gets written.
*
* If the client should not receive new data, because it is a fake client
* or a slave, or because the setup of the write handler failed, the function
* returns REDIS_ERR.
* or a slave not yet online, or because the setup of the write handler
* failed, the function returns REDIS_ERR.
*
* Typically gets called every time a reply is built, before adding more
* data to the clients output buffers. If the function returns REDIS_ERR no