Subject: [alpine-aports] [PATCH] community/mongodb: fix bug #8799, where server fails at start

From: Marc Vertes <[email-masked]>
Date: Mon, 16 Apr 2018 14:39:21 +0000

---
 community/mongodb/APKBUILD            |  4 +++-
 community/mongodb/cache_cursors.patch | 11 +++++++++++
 2 files changed, 14 insertions(+), 1 deletion(-)
 create mode 100644 community/mongodb/cache_cursors.patch

diff --git a/community/mongodb/APKBUILD b/community/mongodb/APKBUILD
index c93c16a162..2f8ba66ca2 100644
--- a/community/mongodb/APKBUILD
+++ b/community/mongodb/APKBUILD
@@ -2,7 +2,7 @@
 # Contributor: Marc Vertes <[email-masked]>
 pkgname=mongodb
 pkgver=3.6.4
-pkgrel=0
+pkgrel=1
 pkgdesc='A high-performance, open source, schema-free document-oriented database'
 url='http://www.mongodb.org'
 arch='x86_64'
@@ -23,6 +23,7 @@ source="http://downloads.mongodb.org/src/mongodb-src-r${pkgver}.tar.gz
 	fix-resolv.patch
 	fix-strerror_r.patch
 	libressl.patch
+	cache_cursors.patch
 
 	mongodb.confd
 	mongodb.initd
@@ -92,6 +93,7 @@ sha512sums="02c2a697af9fdcbb16d19792be17d987e18c684418a63ed4750471c7ec22eb2eabf8
 aac12cffc452f1dc365c65944a015476c2011b0975144879d28938c690fe6e77b6bd672e040b4c04c02cb002224e24d6f13adb083324f424ef4cdb79a3a71f6b  fix-resolv.patch
 94078abfa74583afef6b5c1f0b334b257cfe87b0db7c13309a9c63d915913d5237c776dbb52f6a23e9409ec390d29e2f7225e9b8c8c5efcbc35b015c613f600c  fix-strerror_r.patch
 45721f490f55f015ebdef497530048a36e78d64692be4a06c7f76963b60877e920350b6845385c33a7f6c6d428f60a1c73b083626d4f9567fa19f57ea32f6a3c  libressl.patch
+c781b03e858a78bdbe1df89c1bea8e2aa85ba57e01cba0f3d82470880f29496b4ffbad30ee9f5e864d0ab84d29261720ca383eecb610f23040b7b70d59beef54  cache_cursors.patch
 9bcd870742c31bf25f34188ddc3c414de1103e9860dea9f54eee276b89bc2cf1226abab1749c5cda6a6fb0880e541373754e5e83d63cc7189d4b9c274fd555c3  mongodb.confd
 74009794d566dd9d70ec93ffd95c830ee4696165574ecf87398165637fb40799b38d182ef54c50fd0772d589be94ade7f7a49247f3d31c1f012cb4e44cc9f5df  mongodb.initd
 8c089b1a11f494e4148fb4646265964c925bf937633a65e395ee1361d42facf837871dd493a9a2e0f480ae0e0829dbd3ed60794c5334e2716332e131fc5c2c51  mongodb.logrotate
diff --git a/community/mongodb/cache_cursors.patch b/community/mongodb/cache_cursors.patch
new file mode 100644
index 0000000000..8b706648d8
--- /dev/null
+++ b/community/mongodb/cache_cursors.patch
@@ -0,0 +1,11 @@
+--- mongodb-src-r3.6.4/src/mongo/db/storage/wiredtiger/wiredtiger_kv_engine.cpp.orig
++++ mongodb-src-r3.6.4/src/mongo/db/storage/wiredtiger/wiredtiger_kv_engine.cpp
+@@ -355,7 +355,7 @@
+     ss << "statistics=(fast),";
+ 
+     // We are still using MongoDB's cursor cache, don't double up.
+-    ss << "cache_cursors=false,";
++//    ss << "cache_cursors=false,";
+ 
+     // The setting may have a later setting override it if not using the journal.  We make it
+     // unconditional here because even nojournal may need this setting if it is a transition
-- 
2.17.0

---
Unsubscribe:  [email-masked]
Help:         [email-masked]
---