summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2016-03-07 11:04:05 -0300
committerRenato Botelho <renato@netgate.com>2016-03-07 11:04:05 -0300
commit5a7f68ff1a4cfedfb123a6ce621c19a5cf7373be (patch)
tree0f8b68d84ad9816b7bb8538b22f04c57636cda6c /lib
parentac327b58ab68ee832ddcbbadfcbc6adc5d356cb8 (diff)
downloadFreeBSD-src-5a7f68ff1a4cfedfb123a6ce621c19a5cf7373be.zip
FreeBSD-src-5a7f68ff1a4cfedfb123a6ce621c19a5cf7373be.tar.gz
Revert "Import patch from https://reviews.freebsd.org/D5186"
This reverts commit 3882f7f0612f5660c6287cfa1ba025f2843a1957.
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/db/hash/hash.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/libc/db/hash/hash.c b/lib/libc/db/hash/hash.c
index 333b1a1..af80929 100644
--- a/lib/libc/db/hash/hash.c
+++ b/lib/libc/db/hash/hash.c
@@ -422,10 +422,8 @@ hdestroy(HTAB *hashp)
if (hashp->tmp_buf)
free(hashp->tmp_buf);
- if (hashp->fp != -1) {
- (void)_fsync(hashp->fp);
+ if (hashp->fp != -1)
(void)_close(hashp->fp);
- }
free(hashp);
@@ -460,8 +458,6 @@ hash_sync(const DB *dbp, u_int32_t flags)
return (0);
if (__buf_free(hashp, 0, 1) || flush_meta(hashp))
return (ERROR);
- if (hashp->fp != -1 && _fsync(hashp->fp) != 0)
- return (ERROR);
hashp->new_file = 0;
return (0);
}
OpenPOWER on IntegriCloud