mirror of
https://github.com/fluencelabs/redis
synced 2025-06-21 04:51:32 +00:00
Precise timeouts: fix bugs in initial implementation.
This commit is contained in:
@ -111,6 +111,7 @@ void blockClient(client *c, int btype) {
|
||||
c->btype = btype;
|
||||
server.blocked_clients++;
|
||||
server.blocked_clients_by_type[btype]++;
|
||||
addClientToShortTimeoutTable(c);
|
||||
}
|
||||
|
||||
/* This function is called in the beforeSleep() function of the event loop
|
||||
@ -619,7 +620,6 @@ void blockForKeys(client *c, int btype, robj **keys, int numkeys, mstime_t timeo
|
||||
listAddNodeTail(l,c);
|
||||
}
|
||||
blockClient(c,btype);
|
||||
addClientToShortTimeoutTable(c);
|
||||
}
|
||||
|
||||
/* Unblock a client that's waiting in a blocking operation such as BLPOP.
|
||||
|
Reference in New Issue
Block a user