summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2018-08-03 12:46:04 +0200
committerantirez <antirez@gmail.com>2018-08-03 12:46:06 +0200
commit0ce8323c0d6908edd126c011ad2d44a72a022c48 (patch)
treec77805fa08c7607db1d81dd3322c0a3c9c8d617b
parent3d56311f0ca077fc4661e132508ceca30e74de74 (diff)
downloadredis-0ce8323c0d6908edd126c011ad2d44a72a022c48.tar.gz
Fix AOF comment to report the current behavior.
Realted to #5201.
-rw-r--r--src/aof.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/aof.c b/src/aof.c
index be416ec4e..f8f26bdfe 100644
--- a/src/aof.c
+++ b/src/aof.c
@@ -798,7 +798,9 @@ int loadAppendOnlyFile(char *filename) {
}
/* This point can only be reached when EOF is reached without errors.
- * If the client is in the middle of a MULTI/EXEC, log error and quit. */
+ * If the client is in the middle of a MULTI/EXEC, handle it as it was
+ * a short read, even if technically the protocol is correct: we want
+ * to remove the unprocessed tail and continue. */
if (fakeClient->flags & CLIENT_MULTI) goto uxeof;
loaded_ok: /* DB loaded, cleanup and return C_OK to the caller. */