mirror of
https://github.com/redis/redis.git
synced 2026-05-28 04:02:46 -04:00
if master is already unblocked, do not unblock it twice
This commit is contained in:
parent
e3dfd8c811
commit
2290c4bee1
1 changed files with 1 additions and 1 deletions
|
|
@ -1367,7 +1367,7 @@ void evalGenericCommand(client *c, int evalsha) {
|
|||
* script timeout was detected. */
|
||||
aeCreateFileEvent(server.el,c->fd,AE_READABLE,
|
||||
readQueryFromClient,c);
|
||||
if (server.masterhost && server.master) {
|
||||
if (server.masterhost && server.master && !(server.master->flags & CLIENT_UNBLOCKED)) {
|
||||
server.master->flags |= CLIENT_UNBLOCKED;
|
||||
listAddNodeTail(server.unblocked_clients,server.master);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue