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

Function fsync_dir_recurse

src/common/file_utils.c:127–139  ·  view source on GitHub ↗

* Issue fsync recursively on the given directory and all its contents. * * This is a convenient wrapper on top of walkdir(). */

Source from the content-addressed store, hash-verified

125 * This is a convenient wrapper on top of walkdir().
126 */
127void
128fsync_dir_recurse(const char *dir)
129{
130 /*
131 * If possible, hint to the kernel that we're soon going to fsync the data
132 * directory and its contents.
133 */
134#ifdef PG_FLUSH_DATA_WORKS
135 walkdir(dir, pre_sync_fname, false);
136#endif
137
138 walkdir(dir, fsync_fname, false);
139}
140
141/*
142 * walkdir: recursively walk a directory, applying the action to each

Callers 3

_CloseArchiveFunction · 0.85
install_new_keysFunction · 0.85
BaseBackupFunction · 0.85

Calls 1

walkdirFunction · 0.70

Tested by

no test coverage detected