X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/b39a4d0b3941be82629d94dfd06f1ddc13fb260b..b80b1c5914435c3a013cfe9b19e39f9de35ab06e:/src/bio.c diff --git a/src/bio.c b/src/bio.c index fc4d5669..eaac8e40 100644 --- a/src/bio.c +++ b/src/bio.c @@ -129,6 +129,8 @@ void *bioProcessBackgroundJobs(void *arg) { /* Process the job accordingly to its type. */ if (type == REDIS_BIO_CLOSE_FILE) { close((long)job->arg1); + } else if (type == REDIS_BIO_AOF_FSYNC) { + aof_fsync((long)job->arg1); } else { redisPanic("Wrong job type in bioProcessBackgroundJobs()."); } @@ -151,6 +153,11 @@ unsigned long long bioPendingJobsOfType(int type) { return val; } +#if 0 /* We don't use the following code for now, and bioWaitPendingJobsLE + probably needs a rewrite using conditional variables instead of the + current implementation. */ + + /* Wait until the number of pending jobs of the specified type are * less or equal to the specified number. * @@ -198,3 +205,4 @@ time_t bioOlderJobOfType(int type) { return time; } +#endif