From 8ea2dfd75c962865ee73cdb5d1893b9a64212b27 Mon Sep 17 00:00:00 2001 From: antirez Date: Tue, 13 Sep 2011 16:19:37 +0200 Subject: [PATCH] typo fixed in bio.c --- src/bio.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bio.c b/src/bio.c index fce0658f..b525afb7 100644 --- a/src/bio.c +++ b/src/bio.c @@ -85,7 +85,7 @@ void *bioProcessBackgroundJobs(void *arg) { listNode *ln; /* The loop always starts with the lock hold. */ - if (listLength(server.io_newjobs) == 0) { + if (listLength(bio_jobs) == 0) { pthread_cond_wait(&bio_condvar,&bio_mutex); continue; } @@ -99,6 +99,7 @@ void *bioProcessBackgroundJobs(void *arg) { /* Process the job accordingly to its type. */ if (job->type == REDIS_BIO_CLOSE_FILE) { + printf("Closing file...\n"); close((long)job->data); } else { redisPanic("Wrong job type in bioProcessBackgroundJobs().");