[icinga-checkins] icinga.org: icingaweb2-module-director/master: HostApplyMatches: Prefetch Hostgroups for resolving

git at icinga.org git at icinga.org
Mon Nov 7 14:13:12 CET 2016


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

Author: Markus Frosch <markus.frosch at icinga.com>
Date:   Mon Nov  7 14:12:06 2016 +0100

HostApplyMatches: Prefetch Hostgroups for resolving

refs #13049

---

 library/Director/Objects/HostApplyMatches.php |    1 +
 1 file changed, 1 insertion(+)

diff --git a/library/Director/Objects/HostApplyMatches.php b/library/Director/Objects/HostApplyMatches.php
index 9c90d56..a6e6877 100644
--- a/library/Director/Objects/HostApplyMatches.php
+++ b/library/Director/Objects/HostApplyMatches.php
@@ -53,6 +53,7 @@ class HostApplyMatches
         Benchmark::measure('HostApplyMatches: prefetching');
         PrefetchCache::initialize($db);
         $all = IcingaHost::prefetchAll($db);
+        IcingaHostGroup::prefetchAll($db);
         IcingaZone::prefetchAll($db);
         IcingaCommand::prefetchAll($db);
         Benchmark::measure('HostApplyMatches: preparing flat objects');



More information about the icinga-checkins mailing list