Module: check_mk
Branch: master
Commit: cf385c519587d0fa5336427ec3caa7df34189f16
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=cf385c519587d0…
Author: Jukka Aro <ja(a)mathias-kettner.de>
Date: Wed Feb 28 16:38:37 2018 +0100
Win-agent: default-initialize event state offset
Until now, the sendall-feature of Windows eventlogs was working at most
accidentally, relying on the compiler being friendly enough to zero
struct fields even when not told to do so.
---
agents/windows/sections/SectionEventlog.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/agents/windows/sections/SectionEventlog.h b/agents/windows/sections/SectionEventlog.h
index 44ae3f6..13d489b 100644
--- a/agents/windows/sections/SectionEventlog.h
+++ b/agents/windows/sections/SectionEventlog.h
@@ -60,7 +60,7 @@ std::ostream &operator<<(std::ostream &out, const config &val);
struct state {
state(const char *name) : name(name), newly_discovered(true) {}
std::string name;
- uint64_t record_no;
+ uint64_t record_no{0};
bool newly_discovered;
};
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).