Skip to content

Commit 657850c

Browse files
committed
LivestatusQuery#Execute(): take CheckResultProducer::Ptr
1 parent 0f5714f commit 657850c

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

lib/livestatus/livestatuslistener.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ void LivestatusListener::ClientHandler(const Socket::Ptr& client)
193193
break;
194194

195195
LivestatusQuery::Ptr query = new LivestatusQuery(lines, GetCompatLogPath());
196-
if (!query->Execute(stream))
196+
if (!query->Execute(this, stream))
197197
break;
198198
}
199199

lib/livestatus/livestatusquery.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,7 @@ void LivestatusQuery::PrintFixed16(const Stream::Ptr& stream, int code, const St
621621
}
622622
}
623623

624-
bool LivestatusQuery::Execute(const Stream::Ptr& stream)
624+
bool LivestatusQuery::Execute(const CheckResultProducer::Ptr& producer, const Stream::Ptr& stream)
625625
{
626626
try {
627627
Log(LogNotice, "LivestatusQuery")
@@ -630,7 +630,7 @@ bool LivestatusQuery::Execute(const Stream::Ptr& stream)
630630
if (m_Verb == "GET")
631631
ExecuteGetHelper(stream);
632632
else if (m_Verb == "COMMAND")
633-
ExecuteCommandHelper(stream);
633+
ExecuteCommandHelper(producer, stream);
634634
else if (m_Verb == "ERROR")
635635
ExecuteErrorHelper(stream);
636636
else

lib/livestatus/livestatusquery.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class LivestatusQuery final : public Object
3434

3535
LivestatusQuery(const std::vector<String>& lines, const String& compat_log_path);
3636

37-
bool Execute(const Stream::Ptr& stream);
37+
bool Execute(const CheckResultProducer::Ptr& producer, const Stream::Ptr& stream);
3838

3939
static int GetExternalCommands();
4040

0 commit comments

Comments
 (0)