Date: Wed, 13 Apr 2016 01:54:36 +0000 (UTC) From: Bryan Drewery <bdrewery@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org Subject: svn commit: r297904 - stable/10/lib/libc/db/hash Message-ID: <201604130154.u3D1sa5A038273@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201604130154.u3D1sa5A038273>