提交 0387f869 编写于 作者: A antirez

Fixed a bug in no queueing replies to master.

上级 7ae29d5d
......@@ -124,7 +124,8 @@ redisClient *createClient(int fd) {
* data to the clients output buffers. If the function returns REDIS_ERR no
* data should be appended to the output buffers. */
int prepareClientToWrite(redisClient *c) {
if (c->flags & (REDIS_LUA_CLIENT|REDIS_MASTER)) return REDIS_OK;
if (c->flags & REDIS_LUA_CLIENT) return REDIS_OK;
if (c->flags & REDIS_MASTER) return REDIS_ERR;
if (c->fd <= 0) return REDIS_ERR; /* Fake client */
if (c->bufpos == 0 && listLength(c->reply) == 0 &&
(c->replstate == REDIS_REPL_NONE ||
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册