From a950f48906a7699314d2f1c3e2dee522a29e97fb Mon Sep 17 00:00:00 2001 From: antirez Date: Sat, 25 May 2013 01:00:07 +0200 Subject: [PATCH] Fixed a bug in no queueing replies to master. --- src/networking.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/networking.c b/src/networking.c index f269591c..e7879384 100644 --- a/src/networking.c +++ b/src/networking.c @@ -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 ||