Remove unnecessary recursive lock

Former-commit-id: 0f78b8b91729374f76f562049e16c0556da00959
This commit is contained in:
John Sully 2019-06-17 02:21:02 -04:00
parent 5d07bb92ce
commit 2a02779293

View File

@ -2055,12 +2055,10 @@ int serverCronLite(struct aeEventLoop *eventLoop, long long id, void *clientData
int iel = ielFromEventLoop(eventLoop);
serverAssert(iel != IDX_EVENT_LOOP_MAIN);
aeAcquireLock();
ProcessPendingAsyncWrites(); // A bug but leave for now, events should clean up after themselves
clientsCron(iel);
freeClientsInAsyncFreeQueue(iel);
aeReleaseLock();
return 1000/g_pserver->hz;
}