svn commit: r297904 - stable/10/lib/libc/db/hash
Bryan Drewery
bdrewery at FreeBSD.org
Wed Apr 13 01:54:38 UTC 2016
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);
}
More information about the svn-src-stable-10
mailing list