[icinga-checkins] icinga.org: icingaweb2/feature/livestatus-playground-4787: Livestatus\Connection: document hardcoded count

git at icinga.org git at icinga.org
Sun Nov 16 17:17:19 CET 2014


Module: icingaweb2
Branch: feature/livestatus-playground-4787
Commit: be8120bd3928b1399d882f80e30714bcefe63049
URL:    https://git.icinga.org/?p=icingaweb2.git;a=commit;h=be8120bd3928b1399d882f80e30714bcefe63049

Author: Thomas Gelf <thomas at gelf.net>
Date:   Sun Nov 16 15:53:19 2014 +0100

Livestatus\Connection: document hardcoded count

---

 library/Icinga/Protocol/Livestatus/Connection.php |   10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/library/Icinga/Protocol/Livestatus/Connection.php b/library/Icinga/Protocol/Livestatus/Connection.php
index 7b8f438..24aedec 100644
--- a/library/Icinga/Protocol/Livestatus/Connection.php
+++ b/library/Icinga/Protocol/Livestatus/Connection.php
@@ -96,6 +96,16 @@ class Connection
         }
     }
 
+    /**
+     * Count unlimited rows matching the query filter
+     *
+     * TODO: Currently hardcoded value, as the old variant was stupid
+     *       Create a working variant doing this->execute(query->renderCount())...
+     *
+     * @param Query $query the query object
+     *
+     * @return int
+     */
     public function count(Query $query)
     {
     return 100;



More information about the icinga-checkins mailing list