mirror of
https://github.com/fluencelabs/redis
synced 2025-04-03 00:01:04 +00:00
if master is already unblocked, do not unblock it twice
This commit is contained in:
parent
e3dfd8c811
commit
2290c4bee1
@ -1367,7 +1367,7 @@ void evalGenericCommand(client *c, int evalsha) {
|
|||||||
* script timeout was detected. */
|
* script timeout was detected. */
|
||||||
aeCreateFileEvent(server.el,c->fd,AE_READABLE,
|
aeCreateFileEvent(server.el,c->fd,AE_READABLE,
|
||||||
readQueryFromClient,c);
|
readQueryFromClient,c);
|
||||||
if (server.masterhost && server.master) {
|
if (server.masterhost && server.master && !(server.master->flags & CLIENT_UNBLOCKED)) {
|
||||||
server.master->flags |= CLIENT_UNBLOCKED;
|
server.master->flags |= CLIENT_UNBLOCKED;
|
||||||
listAddNodeTail(server.unblocked_clients,server.master);
|
listAddNodeTail(server.unblocked_clients,server.master);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user