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
54c4e7f8
Commit
54c4e7f8
authored
Jul 12, 2019
by
antirez
Browse files
Vertically compact code in aofWrite().
parent
2a99f199
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/aof.c
View file @
54c4e7f8
...
@@ -303,9 +303,7 @@ ssize_t aofWrite(int fd, const char *buf, size_t len) {
...
@@ -303,9 +303,7 @@ ssize_t aofWrite(int fd, const char *buf, size_t len) {
nwritten
=
write
(
fd
,
buf
,
len
);
nwritten
=
write
(
fd
,
buf
,
len
);
if
(
nwritten
<
0
)
{
if
(
nwritten
<
0
)
{
if
(
errno
==
EINTR
)
{
if
(
errno
==
EINTR
)
continue
;
continue
;
}
return
totwritten
?
totwritten
:
-
1
;
return
totwritten
?
totwritten
:
-
1
;
}
}
...
...
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