Unverified Commit f63bbb43 authored by Salvatore Sanfilippo's avatar Salvatore Sanfilippo Committed by GitHub
Browse files

Merge pull request #5920 from chendq8/aofrewrite

remove temp-rewriteaof-xxx.aof when interrupt aofrewrite
parents 8a46d32b 3621223f
...@@ -1611,6 +1611,9 @@ void aofRemoveTempFile(pid_t childpid) { ...@@ -1611,6 +1611,9 @@ void aofRemoveTempFile(pid_t childpid) {
snprintf(tmpfile,256,"temp-rewriteaof-bg-%d.aof", (int) childpid); snprintf(tmpfile,256,"temp-rewriteaof-bg-%d.aof", (int) childpid);
unlink(tmpfile); unlink(tmpfile);
snprintf(tmpfile,256,"temp-rewriteaof-%d.aof", (int) childpid);
unlink(tmpfile);
} }
/* Update the server.aof_current_size field explicitly using stat(2) /* Update the server.aof_current_size field explicitly using stat(2)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment