Skip to content

Commit

Permalink
PR fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
moticless committed Apr 1, 2024
1 parent 80676e0 commit 5439b81
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/bio.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
*
* This file implements operations that we need to perform in the background.
* Currently there are 3 operations:
* 1) a background close(2) system call. This is needed as when the process is
* 1) a background close(2) system call. This is needed when the process is
* the last owner of a reference to a file closing it means unlinking it, and
* the deletion of the file is slow, blocking the server.
* 2) AOF fsync
Expand Down Expand Up @@ -43,9 +43,9 @@
* (RSALv2) or the Server Side Public License v1 (SSPLv1).
*/


#include "server.h"
#include "bio.h"
#include <fcntl.h>

static char* bio_worker_title[] = {
"bio_close_file",
Expand Down Expand Up @@ -151,7 +151,7 @@ void bioInit(void) {

/* Register a readable event for the pipe used to awake the event loop on job completion */
if (aeCreateFileEvent(server.el, job_comp_pipe[0], AE_READABLE,
bioPipeReadJobCompList,NULL) == AE_ERR) {
bioPipeReadJobCompList, NULL) == AE_ERR) {
serverPanic("Error registering the readable event for the bio pipe.");
}

Expand Down Expand Up @@ -435,5 +435,5 @@ void bioPipeReadJobCompList(aeEventLoop *el, int fd, void *privdata, int mask) {
rsp->func(rsp->arg);
zfree(rsp);
}
zfree(tmp_list);
listRelease(tmp_list);
}

0 comments on commit 5439b81

Please sign in to comment.