| 1818 | } |
| 1819 | |
| 1820 | void aofRemoveTempFile(pid_t childpid) { |
| 1821 | char tmpfile[256]; |
| 1822 | |
| 1823 | snprintf(tmpfile,256,"temp-rewriteaof-bg-%d.aof", (int) childpid); |
| 1824 | bg_unlink(tmpfile); |
| 1825 | |
| 1826 | snprintf(tmpfile,256,"temp-rewriteaof-%d.aof", (int) childpid); |
| 1827 | bg_unlink(tmpfile); |
| 1828 | } |
| 1829 | |
| 1830 | /* Update the server.aof_current_size field explicitly using stat(2) |
| 1831 | * to check the size of the file. This is useful after a rewrite or after |
no test coverage detected