MCPcopy Create free account
hub / github.com/F-Stack/f-stack / aofRemoveTempFile

Function aofRemoveTempFile

app/redis-6.2.6/src/aof.c:1820–1828  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1818}
1819
1820void 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

Callers 2

killAppendOnlyChildFunction · 0.85

Calls 2

snprintfFunction · 0.85
bg_unlinkFunction · 0.85

Tested by

no test coverage detected