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

Function SharedFileSetOpen

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

* Open a file that was created with SharedFileSetCreate(), possibly in * another backend. */

Source from the content-addressed store, hash-verified

180 * another backend.
181 */
182File
183SharedFileSetOpen(SharedFileSet *fileset, const char *name, int mode)
184{
185 char path[MAXPGPATH];
186 File file;
187
188 SharedFilePath(path, fileset, name);
189 file = PathNameOpenTemporaryFile(path, mode);
190
191 return file;
192}
193
194/*
195 * Delete a file that was created with SharedFileSetCreate().

Callers 2

BufFileOpenSharedFunction · 0.85
BufFileOpenSharedV2Function · 0.85

Calls 2

SharedFilePathFunction · 0.85

Tested by

no test coverage detected