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
a60b397b
Commit
a60b397b
authored
Sep 16, 2011
by
antirez
Browse files
use aof_fsync wrapper instead of fsync(2) in bio.c
parent
37183f14
Changes
1
Show whitespace changes
Inline
Side-by-side
src/bio.c
View file @
a60b397b
...
@@ -130,7 +130,7 @@ void *bioProcessBackgroundJobs(void *arg) {
...
@@ -130,7 +130,7 @@ void *bioProcessBackgroundJobs(void *arg) {
if
(
type
==
REDIS_BIO_CLOSE_FILE
)
{
if
(
type
==
REDIS_BIO_CLOSE_FILE
)
{
close
((
long
)
job
->
arg1
);
close
((
long
)
job
->
arg1
);
}
else
if
(
type
==
REDIS_BIO_AOF_FSYNC
)
{
}
else
if
(
type
==
REDIS_BIO_AOF_FSYNC
)
{
fsync
((
long
)
job
->
arg1
);
aof_
fsync
((
long
)
job
->
arg1
);
}
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