mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-09-26 03:09:11 +02:00
IcingaConfig: let single queries fail...
...and do not use transactions
This commit is contained in:
parent
7cf1af15cb
commit
59e88ab32a
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user