Skip to content

Commit ce5cbae

Browse files
eklitzkeluke-jr
authored andcommitted
util.h: Document FileCommit function
1 parent 844d650 commit ce5cbae

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/util/system.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,11 @@ bool error(const char* fmt, const Args&... args)
5656
}
5757

5858
void PrintExceptionContinue(const std::exception *pex, const char* pszThread);
59+
60+
/**
61+
* Ensure file contents are fully committed to disk, using a platform-specific
62+
* feature analogous to fsync().
63+
*/
5964
bool FileCommit(FILE *file);
6065
bool TruncateFile(FILE *file, unsigned int length);
6166
int RaiseFileDescriptorLimit(int nMinFD);

0 commit comments

Comments
 (0)