Module: check_mk
Branch: master
Commit: 9132067053df5cc6ce236cc0e06d26d5e2685ab8
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=9132067053df5c…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Wed Feb 28 11:48:03 2018 +0100
added mod_python patch 0010-fix-multithreading-module-cache.dif
Change-Id: Iae5462e0752888e21e5290f8f7e8795fe0e22f6a
---
.../patches/0010-fix-multithreading-module-cache.dif | 13 +++++++++++++
omd/packages/mod_python/patches/README | 3 +++
2 files changed, 16 insertions(+)
diff --git a/omd/packages/mod_python/patches/0010-fix-multithreading-module-cache.dif
b/omd/packages/mod_python/patches/0010-fix-multithreading-module-cache.dif
new file mode 100644
index 0000000..971d97b
--- /dev/null
+++ b/omd/packages/mod_python/patches/0010-fix-multithreading-module-cache.dif
@@ -0,0 +1,13 @@
+--- mod_python-3.3.1/lib/python/mod_python/importer.py.orig 2018-02-28 11:14:06.489071095
+0100
++++ mod_python-3.3.1/lib/python/mod_python/importer.py 2018-02-28 11:14:46.440575635
+0100
+@@ -490,6 +490,10 @@
+ # Retrieve the per request modules cache entry.
+
+ modules = _get_request_modules_cache()
++ if not modules:
++ _setup_request_modules_cache()
++ modules = _get_request_modules_cache()
++
+
+ # Calculate a unique label corresponding to the
+ # name of the file which is the module. This
diff --git a/omd/packages/mod_python/patches/README
b/omd/packages/mod_python/patches/README
index 4419229..0774b89 100644
--- a/omd/packages/mod_python/patches/README
+++ b/omd/packages/mod_python/patches/README
@@ -32,6 +32,9 @@
0009
Makes logging of mod_python work again with current apache versions.
+0010
+ Fixes broken "import module"-caches when using multiple threads
+
The other patches are taken with thanks from the FEDORA mod_python
package and fix compile problems and RedHat 6.1 (and probably
other distros as well).