mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-27 13:32:45 +00:00
MFC r297626:
Follow-up r295924: Only sync hash-based db files open for writing when closing.
This commit is contained in:
parent
2fdeea238a
commit
334cfd63c7
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/stable/10/; revision=297904
@ -423,7 +423,8 @@ hdestroy(HTAB *hashp)
|
||||
free(hashp->tmp_buf);
|
||||
|
||||
if (hashp->fp != -1) {
|
||||
(void)_fsync(hashp->fp);
|
||||
if (hashp->save_file)
|
||||
(void)_fsync(hashp->fp);
|
||||
(void)_close(hashp->fp);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user