mirror of
https://github.com/fluencelabs/redis
synced 2025-03-21 01:50:50 +00:00
Fixed a bug in no queueing replies to master.
This commit is contained in:
parent
dd937030f0
commit
a950f48906
@ -124,7 +124,8 @@ redisClient *createClient(int fd) {
|
|||||||
* data to the clients output buffers. If the function returns REDIS_ERR no
|
* data to the clients output buffers. If the function returns REDIS_ERR no
|
||||||
* data should be appended to the output buffers. */
|
* data should be appended to the output buffers. */
|
||||||
int prepareClientToWrite(redisClient *c) {
|
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->fd <= 0) return REDIS_ERR; /* Fake client */
|
||||||
if (c->bufpos == 0 && listLength(c->reply) == 0 &&
|
if (c->bufpos == 0 && listLength(c->reply) == 0 &&
|
||||||
(c->replstate == REDIS_REPL_NONE ||
|
(c->replstate == REDIS_REPL_NONE ||
|
||||||
|
Loading…
x
Reference in New Issue
Block a user