MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / aofRemoveTempFile

Function aofRemoveTempFile

src/aof.cpp:1943–1951  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1941}
1942
1943void 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

Callers 2

killAppendOnlyChildFunction · 0.85

Calls 1

bg_unlinkFunction · 0.85

Tested by

no test coverage detected