summaryrefslogtreecommitdiff
path: root/src/server.c
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2020-04-08 12:55:57 +0200
committerantirez <antirez@gmail.com>2020-04-08 19:22:56 +0200
commita5e24eabc306f7fcead0a9d2a5f1433401b6c0ce (patch)
tree2a6ee17a113212c6bea02a61c3c973abed1b0d57 /src/server.c
parent1f7d08b76dc83fd2aa43ee7fc04ab4ee01016628 (diff)
downloadredis-o1-bpop-5.0.tar.gz
Speedup: unblock clients on keys in O(1).o1-bpop-5.0
See #7071.
Diffstat (limited to 'src/server.c')
-rw-r--r--src/server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server.c b/src/server.c
index f6faa61a5..3d3aa7faa 100644
--- a/src/server.c
+++ b/src/server.c
@@ -987,7 +987,7 @@ void clientsCron(void) {
/* Rotate the list, take the current head, process.
* This way if the client must be removed from the list it's the
* first element and we don't incur into O(N) computation. */
- listRotate(server.clients);
+ listRotateTailToHead(server.clients);
head = listFirst(server.clients);
c = listNodeValue(head);
/* The following functions do different service checks on the client.