diff --git a/src/server.c b/src/server.c index d9f7d73843..653cfa7794 100644 --- a/src/server.c +++ b/src/server.c @@ -1612,12 +1612,12 @@ void beforeSleep(struct aeEventLoop *eventLoop) { processed += connTypeProcessPendingData(); if (server.aof_state == AOF_ON || server.aof_state == AOF_WAIT_REWRITE) flushAppendOnlyFile(0); processed += handleClientsWithPendingWrites(); - int last_procssed = 0; + int last_processed = 0; do { /* Try to process all the pending IO events. */ - last_procssed = processIOThreadsReadDone() + processIOThreadsWriteDone(); - processed += last_procssed; - } while (last_procssed != 0); + last_processed = processIOThreadsReadDone() + processIOThreadsWriteDone(); + processed += last_processed; + } while (last_processed != 0); processed += freeClientsInAsyncFreeQueue(); server.events_processed_while_blocked += processed; return;