MFC r297626:

Follow-up r295924: Only sync hash-based db files open for writing when
  closing.
This commit is contained in:
Bryan Drewery 2016-04-13 01:54:36 +00:00
parent 2fdeea238a
commit 334cfd63c7
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/stable/10/; revision=297904

View File

@ -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);
}