diff options
author | antirez <antirez@gmail.com> | 2019-07-12 12:18:33 +0200 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2019-07-12 12:18:33 +0200 |
commit | 54c4e7f86c280f6a3050fdce17039c1572124007 (patch) | |
tree | 13c707a706bd3be2e2a70e0cdbfeffdbbbf1584e /src/aof.c | |
parent | 2a99f199bc806a5659c4d7ce0ea588c4ea6c1f6d (diff) | |
download | redis-54c4e7f86c280f6a3050fdce17039c1572124007.tar.gz |
Vertically compact code in aofWrite().
Diffstat (limited to 'src/aof.c')
-rw-r--r-- | src/aof.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -303,9 +303,7 @@ ssize_t aofWrite(int fd, const char *buf, size_t len) { nwritten = write(fd, buf, len); if (nwritten < 0) { - if (errno == EINTR) { - continue; - } + if (errno == EINTR) continue; return totwritten ? totwritten : -1; } |