MCPcopy Create free account
hub / github.com/apache/cloudberry / SharedFileSetPath

Function SharedFileSetPath

src/backend/storage/file/sharedfileset.c:321–330  ·  view source on GitHub ↗

* Build the path for the directory holding the files backing a SharedFileSet * in a given tablespace. */

Source from the content-addressed store, hash-verified

319 * in a given tablespace.
320 */
321static void
322SharedFileSetPath(char *path, SharedFileSet *fileset, Oid tablespace)
323{
324 char tempdirpath[MAXPGPATH];
325
326 TempTablespacePath(tempdirpath, tablespace);
327 snprintf(path, MAXPGPATH, "%s/%s%lu.%u.sharedfileset",
328 tempdirpath, PG_TEMP_FILE_PREFIX,
329 (unsigned long) fileset->creator_pid, fileset->number);
330}
331
332/*
333 * Sorting hat to determine which tablespace a given shared temporary file

Callers 3

SharedFileSetCreateFunction · 0.85
SharedFileSetDeleteAllFunction · 0.85
SharedFilePathFunction · 0.85

Calls 1

TempTablespacePathFunction · 0.85

Tested by

no test coverage detected