Skip to content

Commit c6f1389

Browse files
committed
Remove dead code
1 parent 05e0f32 commit c6f1389

File tree

1 file changed

+0
-31
lines changed

1 file changed

+0
-31
lines changed

src/server.cpp

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -2302,37 +2302,6 @@ void beforeSleep(struct aeEventLoop *eventLoop) {
23022302
if (moduleCount()) moduleReleaseGIL(TRUE /*fServerThread*/);
23032303
}
23042304

2305-
void beforeSleepLite(struct aeEventLoop *eventLoop)
2306-
{
2307-
int iel = ielFromEventLoop(eventLoop);
2308-
2309-
/* Try to process pending commands for clients that were just unblocked. */
2310-
aeAcquireLock();
2311-
processClients();
2312-
if (listLength(g_pserver->rgthreadvar[iel].unblocked_clients)) {
2313-
processUnblockedClients(iel);
2314-
}
2315-
2316-
/* Check if there are clients unblocked by modules that implement
2317-
* blocking commands. */
2318-
if (moduleCount()) moduleHandleBlockedClients(ielFromEventLoop(eventLoop));
2319-
int aof_state = g_pserver->aof_state;
2320-
aeReleaseLock();
2321-
2322-
/* Handle writes with pending output buffers. */
2323-
handleClientsWithPendingWrites(iel, aof_state);
2324-
2325-
aeAcquireLock();
2326-
/* Close clients that need to be closed asynchronous */
2327-
freeClientsInAsyncFreeQueue(iel);
2328-
aeReleaseLock();
2329-
2330-
/* Before we are going to sleep, let the threads access the dataset by
2331-
* releasing the GIL. Redis main thread will not touch anything at this
2332-
* time. */
2333-
if (moduleCount()) moduleReleaseGIL(TRUE /*fServerThread*/);
2334-
}
2335-
23362305
/* This function is called immadiately after the event loop multiplexing
23372306
* API returned, and the control is going to soon return to Redis by invoking
23382307
* the different events callbacks. */

0 commit comments

Comments
 (0)