File tree Expand file tree Collapse file tree 1 file changed +0
-31
lines changed Expand file tree Collapse file tree 1 file changed +0
-31
lines changed Original file line number Diff line number Diff line change @@ -2302,37 +2302,6 @@ void beforeSleep(struct aeEventLoop *eventLoop) {
2302
2302
if (moduleCount ()) moduleReleaseGIL (TRUE /* fServerThread*/ );
2303
2303
}
2304
2304
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
-
2336
2305
/* This function is called immadiately after the event loop multiplexing
2337
2306
* API returned, and the control is going to soon return to Redis by invoking
2338
2307
* the different events callbacks. */
You can’t perform that action at this time.
0 commit comments