[icinga-checkins] icinga.org: icingaweb2-module-director/master: Db: no transaction for settings

git at icinga.org git at icinga.org
Tue Feb 16 12:18:11 CET 2016


Module: icingaweb2-module-director
Branch: master
Commit: 22918f99b12ca515d553b21a1254527f978246c2
URL:    https://git.icinga.org/?p=icingaweb2-module-director.git;a=commit;h=22918f99b12ca515d553b21a1254527f978246c2

Author: Thomas Gelf <thomas at gelf.net>
Date:   Mon Feb 15 08:25:52 2016 +0100

Db: no transaction for settings

---

 library/Director/Db.php |    2 --
 1 file changed, 2 deletions(-)

diff --git a/library/Director/Db.php b/library/Director/Db.php
index a2fd967..b659975 100644
--- a/library/Director/Db.php
+++ b/library/Director/Db.php
@@ -79,7 +79,6 @@ class Db extends DbConnection
     public function storeSetting($name, $value)
     {
         $db = $this->db();
-        $db->beginTransaction();
         $updated = $db->update(
             'director_setting',
             array('setting_value' => $value),
@@ -96,7 +95,6 @@ class Db extends DbConnection
             );
         }
 
-        $db->commit();
         if ($this->settings !== null) {
             $this->settings[$name] = $value;
         }



More information about the icinga-checkins mailing list