Remove unnecessary recursive lock
Former-commit-id: 0f78b8b91729374f76f562049e16c0556da00959
This commit is contained in:
parent
5d07bb92ce
commit
2a02779293
@ -2055,12 +2055,10 @@ int serverCronLite(struct aeEventLoop *eventLoop, long long id, void *clientData
|
|||||||
int iel = ielFromEventLoop(eventLoop);
|
int iel = ielFromEventLoop(eventLoop);
|
||||||
serverAssert(iel != IDX_EVENT_LOOP_MAIN);
|
serverAssert(iel != IDX_EVENT_LOOP_MAIN);
|
||||||
|
|
||||||
aeAcquireLock();
|
|
||||||
ProcessPendingAsyncWrites(); // A bug but leave for now, events should clean up after themselves
|
ProcessPendingAsyncWrites(); // A bug but leave for now, events should clean up after themselves
|
||||||
clientsCron(iel);
|
clientsCron(iel);
|
||||||
|
|
||||||
freeClientsInAsyncFreeQueue(iel);
|
freeClientsInAsyncFreeQueue(iel);
|
||||||
aeReleaseLock();
|
|
||||||
|
|
||||||
return 1000/g_pserver->hz;
|
return 1000/g_pserver->hz;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user