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
f6023183
Commit
f6023183
authored
Aug 18, 2011
by
Pieter Noordhuis
Committed by
antirez
Sep 13, 2011
Browse files
Fix indent
parent
2401c3ec
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/aof.c
View file @
f6023183
...
@@ -69,17 +69,17 @@ void flushAppendOnlyFile(void) {
...
@@ -69,17 +69,17 @@ void flushAppendOnlyFile(void) {
* While this will save us against the server being killed I don't think
* While this will save us against the server being killed I don't think
* there is much to do about the whole server stopping for power problems
* there is much to do about the whole server stopping for power problems
* or alike */
* or alike */
nwritten
=
write
(
server
.
appendfd
,
server
.
aofbuf
,
sdslen
(
server
.
aofbuf
));
nwritten
=
write
(
server
.
appendfd
,
server
.
aofbuf
,
sdslen
(
server
.
aofbuf
));
if
(
nwritten
!=
(
signed
)
sdslen
(
server
.
aofbuf
))
{
if
(
nwritten
!=
(
signed
)
sdslen
(
server
.
aofbuf
))
{
/* Ooops, we are in troubles. The best thing to do for now is
/* Ooops, we are in troubles. The best thing to do for now is
* aborting instead of giving the illusion that everything is
* aborting instead of giving the illusion that everything is
* working as expected. */
* working as expected. */
if
(
nwritten
==
-
1
)
{
if
(
nwritten
==
-
1
)
{
redisLog
(
REDIS_WARNING
,
"Exiting on error writing to the append-only file: %s"
,
strerror
(
errno
));
redisLog
(
REDIS_WARNING
,
"Exiting on error writing to the append-only file: %s"
,
strerror
(
errno
));
}
else
{
}
else
{
redisLog
(
REDIS_WARNING
,
"Exiting on short write while writing to the append-only file: %s"
,
strerror
(
errno
));
redisLog
(
REDIS_WARNING
,
"Exiting on short write while writing to the append-only file: %s"
,
strerror
(
errno
));
}
}
exit
(
1
);
exit
(
1
);
}
}
sdsfree
(
server
.
aofbuf
);
sdsfree
(
server
.
aofbuf
);
server
.
aofbuf
=
sdsempty
();
server
.
aofbuf
=
sdsempty
();
...
...
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