MFC r297626:

Follow-up r295924: Only sync hash-based db files open for writing when
  closing.
This commit is contained in:
bdrewery 2016-04-13 01:54:36 +00:00
parent 57d12b01ce
commit 4e6bbd6d77

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