File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -570,7 +570,7 @@ void LivestatusQuery::ExecuteGetHelper(const Stream::Ptr& stream)
570
570
SendResponse (stream, LivestatusErrorOK, result.str ());
571
571
}
572
572
573
- void LivestatusQuery::ExecuteCommandHelper (const Stream::Ptr & stream)
573
+ void LivestatusQuery::ExecuteCommandHelper (const CheckResultProducer:: Ptr & producer, const Stream::Ptr & stream)
574
574
{
575
575
{
576
576
std::unique_lock<std::mutex> lock (l_QueryMutex);
@@ -580,7 +580,7 @@ void LivestatusQuery::ExecuteCommandHelper(const Stream::Ptr& stream)
580
580
581
581
Log (LogNotice, " LivestatusQuery" )
582
582
<< " Executing command: " << m_Command;
583
- ExternalCommandProcessor::Execute (m_Command);
583
+ ExternalCommandProcessor::Execute (producer, m_Command);
584
584
SendResponse (stream, LivestatusErrorOK, " " );
585
585
}
586
586
Original file line number Diff line number Diff line change 5
5
6
6
#include " livestatus/filter.hpp"
7
7
#include " livestatus/aggregator.hpp"
8
+ #include " remote/crproducer.hpp"
8
9
#include " base/object.hpp"
9
10
#include " base/array.hpp"
10
11
#include " base/stream.hpp"
@@ -76,7 +77,7 @@ class LivestatusQuery final : public Object
76
77
static String QuoteStringPython (const String& str);
77
78
78
79
void ExecuteGetHelper (const Stream::Ptr & stream);
79
- void ExecuteCommandHelper (const Stream::Ptr & stream);
80
+ void ExecuteCommandHelper (const CheckResultProducer:: Ptr & producer, const Stream::Ptr & stream);
80
81
void ExecuteErrorHelper (const Stream::Ptr & stream);
81
82
82
83
void SendResponse (const Stream::Ptr & stream, int code, const String& data);
You can’t perform that action at this time.
0 commit comments