Skip to content

Commit

Permalink
Fix typo last_procssed -> last_processed (valkey-io#1142)
Browse files Browse the repository at this point in the history
Minor typo.

Signed-off-by: Binbin <[email protected]>
  • Loading branch information
enjoy-binbin authored Oct 10, 2024
1 parent 079f18a commit 0142198
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/server.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0142198

Please sign in to comment.