From 27e17220c201c41b79b404c9f358d00f0e97ebec Mon Sep 17 00:00:00 2001 From: John Sully Date: Fri, 9 Oct 2020 21:02:09 +0000 Subject: [PATCH] Remove dead code Former-commit-id: c6f13892e04607700e27ec963fa1da695e784c11 --- src/server.cpp | 31 ------------------------------- 1 file changed, 31 deletions(-) diff --git a/src/server.cpp b/src/server.cpp index 02b68f3da..baf53f8fe 100644 --- a/src/server.cpp +++ b/src/server.cpp @@ -2302,37 +2302,6 @@ void beforeSleep(struct aeEventLoop *eventLoop) { if (moduleCount()) moduleReleaseGIL(TRUE /*fServerThread*/); } -void beforeSleepLite(struct aeEventLoop *eventLoop) -{ - int iel = ielFromEventLoop(eventLoop); - - /* Try to process pending commands for clients that were just unblocked. */ - aeAcquireLock(); - processClients(); - if (listLength(g_pserver->rgthreadvar[iel].unblocked_clients)) { - processUnblockedClients(iel); - } - - /* Check if there are clients unblocked by modules that implement - * blocking commands. */ - if (moduleCount()) moduleHandleBlockedClients(ielFromEventLoop(eventLoop)); - int aof_state = g_pserver->aof_state; - aeReleaseLock(); - - /* Handle writes with pending output buffers. */ - handleClientsWithPendingWrites(iel, aof_state); - - aeAcquireLock(); - /* Close clients that need to be closed asynchronous */ - freeClientsInAsyncFreeQueue(iel); - aeReleaseLock(); - - /* Before we are going to sleep, let the threads access the dataset by - * releasing the GIL. Redis main thread will not touch anything at this - * time. */ - if (moduleCount()) moduleReleaseGIL(TRUE /*fServerThread*/); -} - /* This function is called immadiately after the event loop multiplexing * API returned, and the control is going to soon return to Redis by invoking * the different events callbacks. */