IcingaConfig: let single queries fail...

...and do not use transactions
This commit is contained in:
Thomas Gelf 2016-06-28 14:01:43 +02:00
parent 7cf1af15cb
commit 59e88ab32a

View File

@ -282,8 +282,6 @@ class IcingaConfig
$fileTable = IcingaConfigFile::$table;
$fileKey = IcingaConfigFile::$keyName;
$this->db->beginTransaction();
try {
$existingQuery = $this->db->select()
->from($fileTable, 'checksum')
->where('checksum IN (?)', array_map(array($this, 'dbBin'), $this->getFilesChecksums()));
@ -345,12 +343,6 @@ class IcingaConfig
);
}
$this->db->commit();
} catch (Exception $e) {
$this->db->rollBack();
throw $e;
}
return $this;
}