[icinga-checkins] icinga.org: icingaweb2-module-director/master: Sync: Use PrefetchCache

git at icinga.org git at icinga.org
Mon Oct 31 17:21:26 CET 2016


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

Author: Markus Frosch <markus.frosch at icinga.com>
Date:   Mon Oct 31 17:20:17 2016 +0100

Sync: Use PrefetchCache

---

 library/Director/Import/Sync.php |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/library/Director/Import/Sync.php b/library/Director/Import/Sync.php
index b81693b..d7b518a 100644
--- a/library/Director/Import/Sync.php
+++ b/library/Director/Import/Sync.php
@@ -5,6 +5,7 @@ namespace Icinga\Module\Director\Import;
 use Exception;
 use Icinga\Data\Filter\Filter;
 use Icinga\Module\Director\Db;
+use Icinga\Module\Director\Db\Cache\PrefetchCache;
 use Icinga\Module\Director\Objects\IcingaObject;
 use Icinga\Module\Director\Objects\ImportSource;
 use Icinga\Module\Director\Objects\IcingaService;
@@ -481,6 +482,8 @@ class Sync
             return $this->objects;
         }
 
+        PrefetchCache::initialize($this->db);
+
         $this->raiseLimits()
              ->startMeasurements()
              ->fetchSyncProperties()



More information about the icinga-checkins mailing list