Commit 3621223f authored by chendianqiang's avatar chendianqiang
Browse files

remove temp-rewriteaof-xxx.aof when interrupt aofrewrite

parent 49816941
...@@ -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