mirror of
https://github.com/fluencelabs/redis
synced 2025-06-13 09:11:20 +00:00
Module: API to block clients with threading support.
Just a draft to align the main ideas, never executed code. Compiles.
This commit is contained in:
@ -1195,6 +1195,10 @@ void beforeSleep(struct aeEventLoop *eventLoop) {
|
||||
if (listLength(server.clients_waiting_acks))
|
||||
processClientsWaitingReplicas();
|
||||
|
||||
/* Check if there are clients unblocked by modules that implement
|
||||
* blocking commands. */
|
||||
moduleHandleBlockedClients();
|
||||
|
||||
/* Try to process pending commands for clients that were just unblocked. */
|
||||
if (listLength(server.unblocked_clients))
|
||||
processUnblockedClients();
|
||||
|
Reference in New Issue
Block a user