| 1941 | } |
| 1942 | |
| 1943 | void aofRemoveTempFile(pid_t childpid) { |
| 1944 | char tmpfile[256]; |
| 1945 | |
| 1946 | snprintf(tmpfile,sizeof(tmpfile),"temp-rewriteaof-bg-%d.aof", (int) childpid); |
| 1947 | bg_unlink(tmpfile); |
| 1948 | |
| 1949 | snprintf(tmpfile,sizeof(tmpfile),"temp-rewriteaof-%d.aof", (int) childpid); |
| 1950 | bg_unlink(tmpfile); |
| 1951 | } |
| 1952 | |
| 1953 | /* Update the g_pserver->aof_current_size field explicitly using stat(2) |
| 1954 | * to check the size of the file. This is useful after a rewrite or after |
no test coverage detected