Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
5ca75751
Commit
5ca75751
authored
Sep 13, 2011
by
antirez
Browse files
typo fixed in bio.c
parent
af14408e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/bio.c
View file @
5ca75751
...
@@ -85,7 +85,7 @@ void *bioProcessBackgroundJobs(void *arg) {
...
@@ -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_new
jobs
)
==
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) {
...
@@ -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()."
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment