summaryrefslogtreecommitdiff
path: root/src/aof.c
diff options
context:
space:
mode:
authorchenyang8094 <chenyang8094@users.noreply.github.com>2022-01-25 17:37:18 +0800
committerGitHub <noreply@github.com>2022-01-25 11:37:18 +0200
commitac011ebd7f86431874a7537d94926b1aff937f2f (patch)
treec0607d6127253028bdbf43ea723c34343a55c716 /src/aof.c
parent823da54361b4da2769297b8749933e6f731d98f2 (diff)
downloadredis-ac011ebd7f86431874a7537d94926b1aff937f2f.tar.gz
Delete the residual code related to aof rewrite buf (#10176)
Diffstat (limited to 'src/aof.c')
-rw-r--r--src/aof.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/aof.c b/src/aof.c
index 80b951200..90c7fe122 100644
--- a/src/aof.c
+++ b/src/aof.c
@@ -2328,9 +2328,7 @@ int rewriteAppendOnlyFileBackground(void) {
}
/* We set aof_selected_db to -1 in order to force the next call to the
- * feedAppendOnlyFile() to issue a SELECT command, so the differences
- * accumulated by the parent into server.aof_rewrite_buf will start
- * with a SELECT statement and it will be safe to merge. */
+ * feedAppendOnlyFile() to issue a SELECT command. */
server.aof_selected_db = -1;
flushAppendOnlyFile(1);
if (openNewIncrAofForAppend() != C_OK) return C_ERR;