MFC r297626:
Follow-up r295924: Only sync hash-based db files open for writing when closing.
This commit is contained in:
parent
57d12b01ce
commit
4e6bbd6d77
@ -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…
x
Reference in New Issue
Block a user