]> git.saurik.com Git - redis.git/commitdiff
Fix indent
authorPieter Noordhuis <pcnoordhuis@gmail.com>
Thu, 18 Aug 2011 10:27:34 +0000 (12:27 +0200)
committerantirez <antirez@gmail.com>
Tue, 13 Sep 2011 10:22:39 +0000 (12:22 +0200)
src/aof.c

index a83149bddb47f0cdf8bcd7483aa66da8bd83ce97..0ebe4457d95a3e26d823ceb5a03010dc76945124 100644 (file)
--- a/src/aof.c
+++ b/src/aof.c
@@ -69,17 +69,17 @@ void flushAppendOnlyFile(void) {
      * 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
      * or alike */
-     nwritten = write(server.appendfd,server.aofbuf,sdslen(server.aofbuf));
-     if (nwritten != (signed)sdslen(server.aofbuf)) {
+    nwritten = write(server.appendfd,server.aofbuf,sdslen(server.aofbuf));
+    if (nwritten != (signed)sdslen(server.aofbuf)) {
         /* Ooops, we are in troubles. The best thing to do for now is
          * aborting instead of giving the illusion that everything is
          * working as expected. */
-         if (nwritten == -1) {
+        if (nwritten == -1) {
             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));
-         }
-         exit(1);
+        }
+        exit(1);
     }
     sdsfree(server.aofbuf);
     server.aofbuf = sdsempty();