summaryrefslogtreecommitdiffstats
path: root/src/lib/Bcfg2/Server/Plugins/Probes.py
diff options
context:
space:
mode:
authorTim Laszlo <tim.laszlo@gmail.com>2012-10-26 15:23:48 -0500
committerTim Laszlo <tim.laszlo@gmail.com>2012-10-26 15:36:22 -0500
commitc722716736c94261de77b337f1bffe924b8724e3 (patch)
tree4b2ae82c55502292e0b243f0e36caf4753b425a7 /src/lib/Bcfg2/Server/Plugins/Probes.py
parentc2e16384931a6789cb6ce49acb11ab47e34d5fa9 (diff)
downloadbcfg2-c722716736c94261de77b337f1bffe924b8724e3.tar.gz
bcfg2-c722716736c94261de77b337f1bffe924b8724e3.tar.bz2
bcfg2-c722716736c94261de77b337f1bffe924b8724e3.zip
Probes/DatabaseBackend: add a thread lock for databases that cannot handle multiple writes
Diffstat (limited to 'src/lib/Bcfg2/Server/Plugins/Probes.py')
-rw-r--r--src/lib/Bcfg2/Server/Plugins/Probes.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/Bcfg2/Server/Plugins/Probes.py b/src/lib/Bcfg2/Server/Plugins/Probes.py
index bb1cbf81c..78dd2af85 100644
--- a/src/lib/Bcfg2/Server/Plugins/Probes.py
+++ b/src/lib/Bcfg2/Server/Plugins/Probes.py
@@ -218,6 +218,7 @@ class Probes(Bcfg2.Server.Plugin.Probing,
err = sys.exc_info()[1]
self.logger.error("Failed to write probed.xml: %s" % err)
+ @Bcfg2.Server.Plugin.DatabaseBacked._db_writer
def _write_data_db(self, client):
""" Write received probe data to the database """
for probe, data in self.probedata[client.hostname].items():