(trunk libT) add an fsync() before closing files
This commit is contained in:
parent
f7cf4b7190
commit
c55788acac
|
@ -323,6 +323,7 @@ tr_close_file( int fd )
|
|||
posix_fadvise( fd, 0, 0, POSIX_FADV_DONTNEED );
|
||||
errno = err;
|
||||
#endif
|
||||
fsync( fd );
|
||||
close( fd );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue