diff options
author | antirez <antirez@gmail.com> | 2020-03-26 15:52:16 +0100 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2020-03-26 15:52:21 +0100 |
commit | ae05457825e2566075fca2d3b004b2674396b454 (patch) | |
tree | 09b2445e99330e0da8026293f85e13e38c646c10 | |
parent | 2ff748b2cdae333640bd73cfcece7f8f2a9ca8ae (diff) | |
download | redis-precise-timeout.tar.gz |
Precise timeouts: fast exit for clientsHandleShortTimeout().precise-timeout
-rw-r--r-- | src/server.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/server.c b/src/server.c index 25af4e161..7240794f1 100644 --- a/src/server.c +++ b/src/server.c @@ -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); |