diff options
author | Tim Laszlo <tim.laszlo@gmail.com> | 2012-10-26 15:23:48 -0500 |
---|---|---|
committer | Tim Laszlo <tim.laszlo@gmail.com> | 2012-10-26 15:36:22 -0500 |
commit | c722716736c94261de77b337f1bffe924b8724e3 (patch) | |
tree | 4b2ae82c55502292e0b243f0e36caf4753b425a7 /src/lib/Bcfg2/Server/Plugins | |
parent | c2e16384931a6789cb6ce49acb11ab47e34d5fa9 (diff) | |
download | bcfg2-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')
-rw-r--r-- | src/lib/Bcfg2/Server/Plugins/Probes.py | 1 |
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(): |