Module: check_mk
Branch: master
Commit: 0198d4500ed4544028424c80b0314f8526cd3cf6
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=0198d4500ed454…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Mon Mar 5 10:03:40 2018 +0100
Relaxed type a bit. Added a TODO.
Change-Id: I8e70e78af3ba25cb53e4e144c79f9f93890feb1f
---
livestatus/src/Query.h | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/livestatus/src/Query.h b/livestatus/src/Query.h
index 93138c7..b4d6702 100644
--- a/livestatus/src/Query.h
+++ b/livestatus/src/Query.h
@@ -87,9 +87,12 @@ private:
Table &_table;
bool _keepalive;
using FilterStack = std::vector<std::unique_ptr<Filter>>;
+ // TODO(sp) This should really use Filter instead of AndingFilter, but
+ // TableStateHistory::answerQuery and TableCachedStatehist::answerQuery rely
+ // on the current state of affairs in a *very* dubious way...
std::unique_ptr<AndingFilter> _filter;
contact *_auth_user;
- std::unique_ptr<AndingFilter> _wait_condition;
+ std::unique_ptr<Filter> _wait_condition;
std::chrono::milliseconds _wait_timeout;
Triggers::Kind _wait_trigger;
Row _wait_object;