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

Function forkFile

src/storage.cpp:126–135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124struct alloc_pool poolembstrobj;
125
126int forkFile()
127{
128 int fdT;
129 memkind_tmpfile(PMEM_DIR, &fdT);
130 if (ioctl(fdT, FICLONE, memkind_fd(mkdisk)) == -1)
131 {
132 return -1;
133 }
134 return fdT;
135}
136
137// initialize the memory subsystem.
138// NOTE: This may be called twice, first with NULL specifying we should use ram

Callers 2

storage_initFunction · 0.85
handle_preforkFunction · 0.85

Calls 2

memkind_tmpfileFunction · 0.85
memkind_fdFunction · 0.85

Tested by

no test coverage detected