Precise timeouts: fast exit for clientsHandleShortTimeout().

This commit is contained in:
antirez 2020-03-26 15:52:16 +01:00
parent 8d11e0df7a
commit 077f965426

View File

@ -1585,6 +1585,7 @@ void addClientToShortTimeoutTable(client *c) {
/* This function is called in beforeSleep() in order to unblock ASAP clients
* that are waiting in blocking operations with a short timeout set. */
void clientsHandleShortTimeout(void) {
if (raxSize(server.clients_timeout_table) == 0) return;
uint64_t now = mstime();
raxIterator ri;
raxStart(&ri,server.clients_timeout_table);