pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/databases/mongodb3 databases/mongodb3: Update patch co...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/2664345263d5
branches:  trunk
changeset: 412833:2664345263d5
user:      gdt <gdt%pkgsrc.org@localhost>
date:      Thu Mar 12 16:36:53 2020 +0000

description:
databases/mongodb3: Update patch comment

Change text about the fdatasync issue based on information from Paul
Ripke.

diffstat:

 databases/mongodb3/distinfo                                                         |   4 +-
 databases/mongodb3/patches/patch-src_third__party_wiredtiger_src_os__posix_os__fs.c |  19 +++------
 2 files changed, 9 insertions(+), 14 deletions(-)

diffs (44 lines):

diff -r a33744faf99e -r 2664345263d5 databases/mongodb3/distinfo
--- a/databases/mongodb3/distinfo       Thu Mar 12 16:36:31 2020 +0000
+++ b/databases/mongodb3/distinfo       Thu Mar 12 16:36:53 2020 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.7 2020/03/06 14:22:46 gdt Exp $
+$NetBSD: distinfo,v 1.8 2020/03/12 16:36:53 gdt Exp $
 
 SHA1 (mongodb-src-r3.4.24.tar.gz) = 86909b211998f0cbc8104df774aecb3d00a01763
 RMD160 (mongodb-src-r3.4.24.tar.gz) = f7e4bfe1e2bd046f1a6c0f2695762076ffee5ae5
@@ -27,4 +27,4 @@
 SHA1 (patch-src_third__party_mozjs-38_platform_x86__64_netbsd_include_js-config.h) = 7ddbb4e3bf4126a1be2195acc82ff859e8130a01
 SHA1 (patch-src_third__party_s2_base_port.h) = 892ce91b5aaa432f34e1e7c169b7fd6eea2a3e94
 SHA1 (patch-src_third__party_wiredtiger_SConscript) = 71fd2326a4e95fec674326225bce5ccf5793aa5a
-SHA1 (patch-src_third__party_wiredtiger_src_os__posix_os__fs.c) = a9a8655421e99f9f189b299643b55ad44c5469d7
+SHA1 (patch-src_third__party_wiredtiger_src_os__posix_os__fs.c) = c1f227a2e026c0c90f438384b71873fecf27cde5
diff -r a33744faf99e -r 2664345263d5 databases/mongodb3/patches/patch-src_third__party_wiredtiger_src_os__posix_os__fs.c
--- a/databases/mongodb3/patches/patch-src_third__party_wiredtiger_src_os__posix_os__fs.c       Thu Mar 12 16:36:31 2020 +0000
+++ b/databases/mongodb3/patches/patch-src_third__party_wiredtiger_src_os__posix_os__fs.c       Thu Mar 12 16:36:53 2020 +0000
@@ -1,18 +1,13 @@
-$NetBSD: patch-src_third__party_wiredtiger_src_os__posix_os__fs.c,v 1.3 2020/03/06 14:22:46 gdt Exp $
+$NetBSD: patch-src_third__party_wiredtiger_src_os__posix_os__fs.c,v 1.4 2020/03/12 16:36:53 gdt Exp $
 
-Without this patch, the WT_PANIC_RET message happens, with errno EBADF.
-The fdatasync() function is specified to fail if fd is not a valid file
-descriptor that is open for writing.  We believe that it is being called
-on a directory, which is therefore invalid.  On Linux, one can use
-fdatasync() on non-writable file descriptors, but the Linux man page
-acknowledges that this is non-standard behavior.
+The fdatasync call is specified by POSIX, and the definition has changed:
+  https://pubs.opengroup.org/onlinepubs/009695399/functions/fdatasync.html
+  https://pubs.opengroup.org/onlinepubs/9699919799/functions/fdatasync.html  
 
-To work around this upstream bug, silently ignore fdatasync errno values
-of EBADF.  A better fix is likely to use fsync on directories instead.
+NetBSD's fdatasync follows the earlier specification.  For now, simply avoid
+crashing on EBADF, at the possible expense of sync safety.
 
-\todo Explore the fsync instead approach.
-
-\todo File upstream and add upstream bugtracker URL.
+\todo Change NetBSD to follow the current standard.
 
 --- src/third_party/wiredtiger/src/os_posix/os_fs.c.orig       2020-01-08 16:30:41.000000000 +0000
 +++ src/third_party/wiredtiger/src/os_posix/os_fs.c



Home | Main Index | Thread Index | Old Index