From 5439b8197a21c0b2112565ec4c440f015298677a Mon Sep 17 00:00:00 2001 From: moticless Date: Mon, 1 Apr 2024 19:03:27 +0300 Subject: [PATCH] PR fixes --- src/bio.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/bio.c b/src/bio.c index a889d853111..6f96ef709ee 100644 --- a/src/bio.c +++ b/src/bio.c @@ -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 @@ -43,9 +43,9 @@ * (RSALv2) or the Server Side Public License v1 (SSPLv1). */ - #include "server.h" #include "bio.h" +#include static char* bio_worker_title[] = { "bio_close_file", @@ -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."); } @@ -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); }