remove temp-rewriteaof-xxx.aof when interrupt aofrewrite
This commit is contained in:
parent
49816941a4
commit
3621223fbb
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user