mirror of
https://github.com/fluencelabs/redis
synced 2025-04-01 15:21:03 +00:00
typo fixed in bio.c
This commit is contained in:
parent
f67e338d5c
commit
8ea2dfd75c
@ -85,7 +85,7 @@ void *bioProcessBackgroundJobs(void *arg) {
|
|||||||
listNode *ln;
|
listNode *ln;
|
||||||
|
|
||||||
/* The loop always starts with the lock hold. */
|
/* 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);
|
pthread_cond_wait(&bio_condvar,&bio_mutex);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@ -99,6 +99,7 @@ void *bioProcessBackgroundJobs(void *arg) {
|
|||||||
|
|
||||||
/* Process the job accordingly to its type. */
|
/* Process the job accordingly to its type. */
|
||||||
if (job->type == REDIS_BIO_CLOSE_FILE) {
|
if (job->type == REDIS_BIO_CLOSE_FILE) {
|
||||||
|
printf("Closing file...\n");
|
||||||
close((long)job->data);
|
close((long)job->data);
|
||||||
} else {
|
} else {
|
||||||
redisPanic("Wrong job type in bioProcessBackgroundJobs().");
|
redisPanic("Wrong job type in bioProcessBackgroundJobs().");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user