Author: bdrewery Date: Wed Apr 13 01:54:36 2016 New Revision: 297904 URL: https://svnweb.freebsd.org/changeset/base/297904
Log: MFC r297626: Follow-up r295924: Only sync hash-based db files open for writing when closing. Modified: stable/10/lib/libc/db/hash/hash.c Directory Properties: stable/10/ (props changed) Modified: stable/10/lib/libc/db/hash/hash.c ============================================================================== --- stable/10/lib/libc/db/hash/hash.c Wed Apr 13 01:54:33 2016 (r297903) +++ stable/10/lib/libc/db/hash/hash.c Wed Apr 13 01:54:36 2016 (r297904) @@ -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); } _______________________________________________ svn-src-stable-10@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-stable-10 To unsubscribe, send any mail to "svn-src-stable-10-unsubscr...@freebsd.org"